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

Rescaling GUIs according to the monitor or window size?

What do I need to use to rescale GUIs according to the monitor or window size?

1 answer

✓ Accepted answer

When scaling GUIs in code, you use 'UDim2.new()', like so:

GUI.Size = UDim2.new(xScale, xOffset,  yScale, yOffset)

The scale values are proportionate to the screen, while offset are not. Scale values go from 0 to 1, 1 being the size of the screen. Hope this helps! :)

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