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

How do you properly scale GUIs?

Asked by 6 years ago

Ive tried using the scale properties but when I go to test different screen ratios it looks way too small or way too big. But in phantom forces i saw that all elements are perfectly sized and positioned no matter what screen ratio.

Somebody tell me what im missing Ive searched forever and cant find anything.

And if someone could explain how to use the constraints that would be great too.

0
You should look into SizeConstraint. it's a property of every gui instance (except ScreenGui) RubenKan 3615 — 6y
0
i just tried and it didnt even work for me it just does the same stupid stuff and shrinks too much please i just want to finish this game guis always frustrate me Bucwheed 37 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

I think I know what you mean. Someone recently asked this, so I'll just my answer from there here:


Ok, this isn't too hard.

Let's say you want it to stay at the right and middle of the screen.

First, we need the size. Let's say the size is:

0.1,100,0.1,100

Now, for the position part, it's easier to show you than explain.

position = 0.03, -50, 0.5, -50

As you can see, the 2nd and 4th numbers are the 2nd and 4th numbers of the size, except divided in half, and put into the negatives.

This will make it to the left of the screen and in the middle for ALL screens.

alvinBLOX made a handy video showing on how to put it in the centre of the screen for all players, and he explains what I showed you a lot better:

https://www.youtube.com/watch?v=k8NP-dqByp4

If this helped, please put it as "answered". Thanks!

0
And I will answer to what you answered me, this does not work, as this is a different thing we ask. Arti_BLOX 58 — 6y
Ad

Answer this question