Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How Would i find players position?

Asked by 9 years ago

if there a way to find a players position?

1 answer

Log in to vote
1
Answered by
Goulstem 8144 Badge of Merit Moderation Voter Administrator Community Moderator
9 years ago

The Player object itself does not contain a Position property so the next best thing would be either of the two;

1) Use the GetPrimaryPartCFrame function on the Character model

local player --Define the player

local playerPos = player.Character:GetPrimaryPartCFrame()

2) Index the Position or CFrame property of the Character's Torso.

local player --Define the player

local playerPos = player.Character.Torso.Position
0
thanks for your help buddy thegamingpro566 0 — 9y
0
Accept answer if this helped, it helps distribute rep to appropriate users. Thanks. Goulstem 8144 — 9y
Ad

Answer this question