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?
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?
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.
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
Wow thanks for the quick respond :)