Gui Is scaled different In Mobile

Lately I have been having some issues with gui on other devices, and this is the last problem.

The gui looked very squished in other devices, so I added a UiAspectRatioConstraint and it fixed it, but it made another problem.

For some reason it makes the size of the frame to default.
This is what it looks like in mobile:

And this is what its supposed to look like:


before someone tells me to use the autoscale plugin The gui position and size is already scaled

so if there is someone that could help me, it would be very appreciated
Thanks for your time.

3 Likes

Try setting the AnchorPoint’s Y value to 0.5 and the Position’s Y scale value to 0.5 in all of the buttons.

This way is yes, tedious, but you can run a script that detects mobile players and you can change the sizes there. (locally)

Its completely made the buttons disappear

That would work, but It makes it look weird for Ipad, and other mobile devices.

1 Like

Can you send the properties of one of the buttons?

position is {0.764, 0},{0.044, 0}
size is {0.204, 0},{0.292, 0}

AnchorPoint is 0,0

You need to set the AnchorPoint to 0, 0.5

All it did was put it slightly higher, other than that, it didnt fix the problem.

You also need to set the position to {0.764, 0},{0.5, 0} WITH the AnchorPoint being 0, 0.5

this is what is looks like now.
Screenshot 2022-04-12 192325

And this is what it looks like in Ipad, which is much weirder

offset issues, can you provide a rbxmx file with the UI ?

You could use a UIAspectRatioConstraint

It literally says that I am using it…

Here is a file
GUI FIX PLS.rbxl (40.5 KB)

Hmm maybe try a UIScale Also, use Scale not Offset

Again, I already did
I tried every solution I could find

Are you sure you’ve properly scaled the background? Perhaps you can use UIAspectRatioContraints like someone else point out to make the background have the same shape.

The UiAspectConstraint is what is causing the problem, but without it, the gui looks squished in mobile.