When using GUI frames, how can you set the position to align to the right screen instead of the left?

I want to align objects such as text labels to the right side of the screen rather than the left when their position is meant to stick to the right side, however by default it aligns to the left, and when the screen resolution is altered, there is a gap on the right side of the GUI where it should be flush with the right side of the screen. I’ve tried using “-” for the position however that just locks it to left of the screen itself. The text label is within a Frame that is in the StarterGUI and I am using Scale not offset for position and size, so that’s not the issue.

If anyone could help, I would really appreciate this!

1 Like

Within your GUI place a UIPageLayout and change the HorizontalAlignment to Right as shown here (look how i have laid out the hierarchy in the explorer window, and look where label appears in the ScreenGui):

Will this work for frames however?
I have multiple frames inside a single ScreenGUI for separate gui elements

1 Like

Yes, try it out… works. However if you want multiples frames spaced out evenly and laid out on the right side, then use UIListLayout and change the HorizontalAlignment to Right and then play with Scale in Padding to space them out accordingly, like this:

1 Like

Just change Anchor Point with Position.
For example: Anchor Point to 1, 0 and Position to {1, 0}, {0, 0}, an object will be in the upper right corner.

2 Likes

I forgot about anchor points, I knew there was a way to do this, thank you so much!

This is useful information too, would be nice if I could set your comment as the solution aswel as the comment below as both are valid and useful yet different solutions! Thanks ^-^

1 Like

No problem… sometimes there are multiple ways to get to a solution… and some situations call for anchor point while some make use of the UI constraints… thanks for acknowledging though!

1 Like

you’re welcome and totally right!