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

How do I make the objects in my GUI not change position when the resolution changes?

Hello! So I have a GUI for a game I'm making. Whenever my game tab changes resolution, my GUI, and the things inside it change their position. When I get onto a higher resolution, everything is more spread out. on a lower resolution, everything starts to overlap. How do I fix this? and if I left out any important information you need to help me, let me know.

1 answer

Alright, I think I see the issue here.

Although this is not a solution with scripting, it needs to become common knowledge among new GUI "Devs".

If you look inside most GUI elements, you will see a 'Size' property. Inside that, there are an X and a Y. Again, inside those are Scale and Offset. Scale is a decimal where 1 is the full screen and 0 is nothing. Offset is the number of pixels the element will take-up.

For your situation, you need to use the Scale portion.

If you have any questions feel free to contact me!

3 comments

0

LMK is this helped...

0

So i have to do this for the canvas and all the buttons, right?

0

Yes, all the GUI elements you want scale to the screen.

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