Gui sizing weirdly?

this is probably a really stupid question, but my guis size are weird with other device sizes, ie. average laptop, xbox, and tablet and mobile, here is the normal res:


and here is with other devices:




as you can see in the pictures, the gui is resizing horizontally, but i need it to resize horizontally AND vertically.

Thank you for reading.

2 Likes

Try using Scale to instead of Offset when changing the position/size of any GUI elements.

oh yeah, i forgot to mention, i am using scale for both size/pos, i used a plugin named autoscale lite.

It looks like the corners are the root of the problem. Did you use an image or a plugin to get the rounded corners?

no, i used ui-corner.
30 ch ar

the main problem are the five buttons on the bottom, i want them to be perfectly square, but they get smaller on the horizontal axis.

You’ll have to script it then. If the scale of the viewport changes, then it will simply adjust. I’d recommend deciding what dimension you want to remain the same (x or y), then finding the length in pixels of that dimension (dimensionScale * workspace.CurrentCamera.ViewportSize.dimension). Once you find the length in pixels, set the opposite dimension to that.

okay, thanks.
30 ch aracterssss