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

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

Asked by 4 years ago

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

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. RadiatedExodus 41 — 4y

1 answer

Log in to vote
1
Answered by 4 years ago

Use anchorpoint:

local mainGUI = script.Parent

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

mainGUI.AnchorPoint = Vector2.new(0,.5)
0
Also, if you want the text to be the same on all screens, turn on TextScaled FrostedFlakes67 71 — 4y
0
hm alright RadiatedExodus 41 — 4y
0
Thanks that worked! RadiatedExodus 41 — 4y
Ad

Answer this question