position

Returns the world position of the current player. The world position is the current location (absolute coordinates) of the player in the game world.

player.position();

Returns

  • the world position of the current player.

Example

Display your world position in the game chat. Make a chat command called myposition to say your location. Join the My current position is: string with your position.

player.onChat("myposition", function () {
    player.say("My current position is: " + player.position());
});

See Also

To learn how positions work, see positions.