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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
entity |
Entity | null | undefined |
Returns
Section titled “Returns”entity is PlayerEntity