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

Help with ROBLOX Screen resolution?

I'm making a lot of GUIs for my Gui game. I seem to have stumbled into a problem where if the Gui background is covering all of my screen, but only covering 3/4's of my friends screen. On his screen everything is misplaced and out of position. On my screen it looks just fine..

How would I adjust GUIs to fit everyone's screen no matter what monitor resolution they have?

2 answers

✓ Accepted answer

You may have noticed that the Size and Position properties of all GUI objects have a space for 2 separate values for each dimension, looking like: {0, 100}{0, 100}. The first space in each set is called "Scale" and sets the size of the GUI object based on the screen size automatically. Use that whenever you need a GUI to always be a certain percentage of the screen size.

2 comments

1

So for example a GUI Frame with a Size value of {0.8, 0}{0.5, 0} will take up 80% of ANY sized ROBLOX window in the X-dimension and 50% of the window in the Y-dimension

0

Thanks!! This brought up SO much clarity!

It depends what device your friend is on, if your friend is on mobile then it's obvious that everything is going to be mixed and not properly placed. Or it could be something on your screen GUI. But I'm not sure.

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