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

Can I use roblox's GUI editor to edit by scale?

The new ROBLOX gui editor always edits my guis by offset when I want to make my position, size everything scale. Is there any setting or way to make it default use scale only?

2 answers

✓ Accepted answer

If you size them yourself in scale first, it will size them in scale. It just goes off whatever the GUI is currently using.

1 comment

0

Thanks, this will work

Just get the percentage for the scale from the offset. You can do this by dividing the gui's offset by its parent's absoluteposition when Roblox changes the offset. Btw, you'll have to do this manually in studio's cmd bar.

local GUI = -- the GUI
local absPos = GUI.Parent.AbsolutePosition

GUI.Position = UDim2.new(GUI.Position.X.Offset/absPos.X, 0, GUI.Position.Y/absPos.Y)

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