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

Why do my GUI's move downward when activated?

Asked by 5 years ago

I don't really know why this happens. I don't use AbsolutePosition or TweenService but all of my GUI's are a bit lower than they are on my screen and the emulator.

1 answer

Log in to vote
0
Answered by 5 years ago

Ah, my friend. You are using Offset!

On the Position property, it looks like this {0, 0}, {0, 0}. The first set of curly brackets is the X value, and the second is the Y value. The first number in each set is the Scale. Scale is a percentage of the overall screen size. The second number, Offset, is a direct amount of pixels. When you use Offset, it will display the same on every screen because you are not defining a percentage, but rather a pixel amount.

I would highly suggest you read the "Scale and position" section of this guide as I'm sure it explains this issue much better than I could. https://devforum.roblox.com/t/ui-design-starter-guide/53461

If this helped, upvote/accept it! Thanks!

0
I don't understand. Are you trying to say that it SHOULDN'T be on {0,0}{0,0} or it SHOULD be? User#25920 0 — 5y
0
Also, the devforum doesn't really help me out. I don't get what the values are. User#25920 0 — 5y
Ad

Answer this question