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

Rescaling GUIs according to the monitor or window size?

Asked by
RoyMer 301 Moderation Voter
8 years ago

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

1 answer

Log in to vote
0
Answered by
saenae 318 Moderation Voter
8 years ago

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! :)

Ad

Answer this question