Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to get only one position value from a part or another object?

How to get only one position value from a part or another object?

Example code:

local part = game.Workspace.part
local x = part.Position

In this case, I will get all of the position, but what if I need the x position specifically?

1 answer

✓ Accepted answer

You add your axis at the end of a position.

Example:

local part = game.Workspace.part local x = part.Position.X

This will give us the axis X value of the position.

1 comment

0

Wow thanks for the quick respond :)

This discussion is preserved as it was. New answers, comments, and votes are closed.