of     1   

wvvv
#221334217Friday, July 14, 2017 9:38 PM GMT

x and y
championbuilder
#221334713Friday, July 14, 2017 9:45 PM GMT

.5 and .5
wvvv
#221335293Friday, July 14, 2017 9:52 PM GMT

ok this was a dumb post i should have included im trying to find the middle of the screen so when my gui appears its smack in the middle, this means answers could confused gui coordinates with vector3 coordinates also .5 isnt working unless im doing something wrong
VoidFrost
#221335606Friday, July 14, 2017 9:56 PM GMT

local GUI = your GUI .5-GUI.Size.X.Scale/2, -GUI.Size.X.Offset/2, .5-GUI.Size.Y.Scale/2, -GUI.Size.X.Offset/2
VoidFrost
#221335654Friday, July 14, 2017 9:56 PM GMT

sorry GUI.Size = UDim2.new(.5-GUI.Size.X.Scale/2, -GUI.Size.X.Offset/2, .5-GUI.Size.Y.Scale/2, -GUI.Size.X.Offset/2) i think this was how you did it
HeIix
#221335776Friday, July 14, 2017 9:58 PM GMT

say you have a gui that you size UDim2.new(0, 100, 0, 100) so 100 by 100 pixels then if you want it in the middle of your screen you'd do gui.Position = UDim2.new(.5, -50, .5, -50) -- take half of the size, then subtract the position is where the upper left corner of the gui is located at, not the middle of the gui ‍ ‍ ‍                                            ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍
wvvv
#221335976Friday, July 14, 2017 10:00 PM GMT

@frost, helix ty for helping i figured there was a problem but i couldnt wrap my head around it i'd ask why i couldnt get an origin but my head was frying ill try these solutions
wvvv
#221336749Friday, July 14, 2017 10:06 PM GMT

"gui.Position = UDim2.new(.5, -50, .5, -50) -- take half of the size, then subtract" i made progress and i understand it, not sufficiently though. i dont understand how you're getting .5 from 0 when you cant divide or get anything from 0. and you're dividing then subtracting by what you get? im sorry if this is foolish my mind isnt working AT ALL today. textLabel.Position = UDim2.new(.5, 75, .5, 25) textLabel.Size = UDim2.new(0, 150, 0, 50) this is my answer but im only understanding a little
chimmihc
#221341299Friday, July 14, 2017 10:39 PM GMT

AnchorPoint AnchorPoint AnchorPoint AnchorPoint AnchorPoint AnchorPoint AnchorPoint AnchorPoint AnchorPoint AnchorPoint AnchorPoint AnchorPoint AnchorPoint AnchorPoint AnchorPoint AnchorPoint AnchorPoint AnchorPoint AnchorPoint AnchorPoint AnchorPoint AnchorPoint AnchorPoint AnchorPoint AnchorPoint AnchorPoint AnchorPoint AnchorPoint AnchorPoint AnchorPoint AnchorPoint AnchorPoint AnchorPoint AnchorPoint AnchorPoint AnchorPoint AnchorPoint AnchorPoint AnchorPoint AnchorPoint AnchorPoint AnchorPoint AnchorPoint AnchorPoint AnchorPoint AnchorPoint AnchorPoint AnchorPoint AnchorPoint AnchorPoint AnchorPoint AnchorPoint AnchorPoint AnchorPoint AnchorPoint AnchorPoint AnchorPoint AnchorPoint AnchorPoint AnchorPoint
WillieTehWierdo200
#221341625Friday, July 14, 2017 10:41 PM GMT

@chimmihc is right, but could've been a bit more helpful by giving you a Wiki link: wiki.roblox.com/index.php?title=API:Class/GuiObject/AnchorPoint
wvvv
#221342389Friday, July 14, 2017 10:46 PM GMT

@willie its abstract, im using a screenGui my knowledge on scripting is amatuer too
AggressiveCatch
#221343110Friday, July 14, 2017 10:52 PM GMT

the way gui positioning works is that the 1st and 3rd numbers scale to the size of the screen the top left corner is 0 and 0 in scale and the bottom right corner is 1 and 1, because that's the full size of the screen the middle of the screen is 0.5 and 0.5 in scale, but because that positions the top left corner of the GUI, then the top left corner of the GUI will be in the middle and the GUI's center won't be in the middle you can fix this either by using anchor points or you need to subtract half of the size of the gui so if your gui is, say, 0.5 scale in width and height, then you'd have to position your gui at 0.25 in x and y scale for it to be positioned in the middle because 0.5 - (0.5/2) = 0.25
VoidFrost
#221345018Friday, July 14, 2017 11:05 PM GMT

im pretty sure i correctly told him the answer, did he try it
wvvv
#221345807Friday, July 14, 2017 11:11 PM GMT

@void the question was solved

    of     1