Available since Version 1.0.
Gets the player's character's current position in the level. This is nil if the player is not currently in a level.
Syntax
Character:GetPosition()Arguments
No arguments.
Return Values
position(Vector3 |nil) - The player's character's current position in the level, ornilif the player is not currently in a level.
Examples
local success, result = Server.Players.GetPlayer(playerName)
if not success then
-- Handle error
return
end
local position = result.Character:GetPosition()