IsPlayerInWorld
Whether the player is spawned and replicated.
false while the level loads, while a spawn is held, after a despawn. Positions and vitals mean something only while this
is true; a dead player waiting for the respawn is still in the world (IsPlayerDead).
Syntax
Section titled “Syntax”IsPlayerInWorld(pid)| Parameter | Type | |
|---|---|---|
pid |
number | the player |
Returns
Section titled “Returns”boolean
Example
Section titled “Example”local function standing(pid) return IsPlayerInWorld(pid) and not IsPlayerDead(pid) endSee also
Section titled “See also”IsPlayerConnected · IsPlayerDead · OnPlayerSpawn · the Players group of the index
