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

How does one get the individual parts of a UDim, or Gui Object position?

Asked by 4 years ago
Edited 4 years ago

For example, I want to get the X scale of the position of a frame, and multiply it by 2, so it moves to either the left or right. But only the X scale, and nothing else. What I want to know is how I reference this value in a script, as I can't find any help online. Such as is it GuiObject.Position.ScalarX or GuiObject.Position.Scale.X etc.. ? Thanks.

1 answer

Log in to vote
1
Answered by 4 years ago
GuiObject.Position.X.Scale
GuiObject.Position.X.Offset
GuiObject.Position.Y.Scale
GuiObject.Position.Y.Offset

Position

1
Can't believe I didn't try this. Shrilleh 68 — 4y
0
Lol The_Pr0fessor 595 — 4y
Ad

Answer this question