‹ All natives
Namespace: ENTITY
API set: server
Language: Luau Improve
entity:exists
Also: player:exists
entity:exists(): boolean
Tells whether the entity still exists.
Returns#
boolean: false after a deletion or a disconnection
Example#
after(10, function()
if player:exists() then
player:emit("reminder")
end
end)
Notes#
- Check it after a
wait or in a timer: the player may have left in the meantime.