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

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

Asked by 10 years ago

Is there a way to make a gui, in this case, a teleport menu GUI found here: http://www.roblox.com/Lobby-place?id=148631504 ...resize itself to the window size? i.e. Everything will show up if your window size is not at least a maximized window?

1 answer

Log in to vote
1
Answered by
Ekkoh 635 Moderation Voter
10 years ago

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)
Ad

Answer this question