Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

GUI is normal on my PC, but on another PC this look werid?

Asked by 6 years ago

Hi.

Today i wanna ask you all why this looks weird.

So, my machinntosh monoblock have another size of display, and when i make gui in roblox studio this was looks good.

When another my friend joined the game he said "Wow dude what happens with gui".

Gui on his PC stuck together, that was got another position and size.

What i need to do for fix this point? Anchor Point not helps.

1 answer

Log in to vote
1
Answered by
mattscy 3725 Moderation Voter Community Moderator
6 years ago

You should use Scale instead Offset when resizing and positioning your guis. When you might have done something like this for the gui size and/or position: {0,100,0,100} You can change it to something like this: {0.5,0,0.5,0}.

While the first example would make the gui size 100 by 100 pixels for any screen, the second example would adapt the gui so that it was half the width of the screen and half the length of the screen no matter what the screen size was. If you use a combination of these, it may look unusual or different on other people's screens than it does on yours.

If you want to maintain the aspect ratio, a helpful property is the SizeConstraint. A great tutorial on this can be found here.

A good way to test your guis on different screen sizes is to resize your window in studio. You can also use emulations to view the screen size for different devices.

0
But what if another Machintosh user will join my game and he will see the weird gui because his screen resolution is big/ pmainokiborg 6 — 6y
0
If you want to keep the size of the gui uniform across all devices, you can use Offset. The only problem with this is that you may not be able to see the whole gui on smaller devices if the gui is too big. mattscy 3725 — 6y
0
Thank you! pmainokiborg 6 — 6y
Ad

Answer this question