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

How do I keep screen-size of gui's constant even if they are resized?

Asked by 9 years ago

I noticed that whenever I re-sized my window, the gui's would get smaller and so on. I'm not sure why this happens. I want it to be at a constant-fixed size when you have it on minimized and maximized, across all computers.

Don't get what I mean?

Look at it this way:

Let's say that I have a gui size in my ROBLOX studio at a certain size. Then when I go into online mode, the size looks fine on full-screen but as soon as I re-size the ROBLOX window/minimize it the gui size is reduced. I want to keep it constant. Can someone help me with a method and shed light if it's possible?

0
For the size of GUI's, their's and XScale,XOffset, YScale, YOffset (In this order). Scale is the size it will fit for that players screen while Offset is a measurment in I beleive Pixels that will be that amount for every player. alphawolvess 1784 — 9y

1 answer

Log in to vote
0
Answered by 9 years ago

Simple, just set the size using offsets. UDim2s take two arguments for length and two for height: xScale, xOffset, yScale, yOffset. (For example: Instead of setting the size to UDim2.new(1,0,1,0), set it to UDim2/new(0,200,0,200))

0
Wow thanks. I was wondering where to find people like you, the ROBLOX forums are so combined they make everything harder. Arithmeticity 167 — 9y
Ad

Answer this question