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

How do I separately change GUI's X and Y scale positions?

Currently I only know how to get both X and Y's Scale and Offset positions

guiObject.Position = UDim2.new(0, 0, 0, 0)

How am I able to just change the Position Scale value of X or of Y? (1st and 3rd of the 0's)

1 answer

✓ Accepted answer

You can reference the scale to keep their values.

guiObject.Position = UDim2.new(0.5,guiObject.Position.X.Offset,guiObject.Position.Y.Scale,guiObject.Position.Y.Offset)

This will only change the X scale.

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