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

Auto-Resize/GUI that is proportionate to Window Size?

1 answer

✓ Accepted answer

If you want a GUI to occupy the entire screen you can set its size to UDim2.new(1, 0, 1, 0). The syntax for UDim2 goes as follows-

UDim2.new( xScale, xOffset, yScale, yOffset )

So if you wanted a GUI to take half the screen

UDim2.new(.5, 0, .5, 0)

Or if you wanted to shave off 10px off each side of the GUI

UDim2.new(.5, -10, .5, -10)

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