Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to make a GUI to be in left center screen??

I already tried to doing this on the GUI I want it to be at Left side at your screen and then centered but I can't get a perfect center, and mostly on a 1920x1080 screen it would be at Left side Centered so anyone knows how to fix? (Sorry if It's kinda bad I'm really new but need help)

I already tried using this in a Local Script:

local mainGUI = script.Parent

mainGUI.Position = UDim2.new(0, 0, 0.5, 0)

The result if I try putting the GUI onto left side centered using Properties or the localscript (they are same and I tested in my laptop that have 1366x768 screen built in): https://imgur.com/a/XxLccPp

I do have a beast personal computer with 1920x1080 screen and tested it its centered fine

So basically it's on left of my screen but it won't be centered perfectly

1 comment

0

I forgot to say this also applies to any GUI I make (like update logs and more that is GUI) and if I want them to be centered comepletely on the X and Y it won't have a perfect center too.

1 answer

✓ Accepted answer

Use anchorpoint:

local mainGUI = script.Parent

mainGUI.Position = UDim2.new(0, 0, 0.5, 0)

mainGUI.AnchorPoint = Vector2.new(0,.5)

3 comments

0

Also, if you want the text to be the same on all screens, turn on TextScaled

0

hm alright

0

Thanks that worked!

This discussion is preserved as it was. New answers, comments, and votes are closed.