Skip to content

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).

IsPlayerInWorld(pid)
Parameter Type
pid number the player

boolean

local function standing(pid) return IsPlayerInWorld(pid) and not IsPlayerDead(pid) end

IsPlayerConnected · IsPlayerDead · OnPlayerSpawn · the Players group of the index