Noverwyn Documentation
API set:
148

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

Namespace: PLAYER

Namespace: ENTITY

Namespace: ZONE

Namespace: TIME

Namespace: SCRIPT

Namespace: EVENT

Namespace: CLIENT

Namespace: CLIENT EVENT

Namespace: UNIFORM

Namespace: WAND

Namespace: LOOK

Namespace: CONTROL

Namespace: GAIT

Namespace: VOICE

Namespace: ATELIER

Namespace: TOOL