Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

isPlayer

isPlayer(entity): entity is PlayerEntity

Whether entity is a living player’s entity, as emitEvent’s to takes: what narrows an entity found another way, such as the controller findController reads, which may be a room controller. As Roblox’s Players:GetPlayerFromCharacter answering nil.

Parameter Type
entity Entity | null | undefined

entity is PlayerEntity