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

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

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?

1 comment

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.

1 answer

✓ Accepted answer

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

1 comment

0

Wow thanks. I was wondering where to find people like you, the ROBLOX forums are so combined they make everything harder.

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