‹ All natives
Namespace: ENTITY
API set: server
Language: Luau Improve
entity:position
Also: player:position
entity:position(): vector?
Returns the entity's position.
Returns#
vector?: position in metres (.x, .y, .z), or nil if it no longer exists
Example#
local p = player:position()
log(p.x, p.y, p.z)