other people have different screen sizes, so if i put the gui in the middle of the screen for me, then for other people it will be off.
so changing the position normally is just useless.
other people have different screen sizes, so if i put the gui in the middle of the screen for me, then for other people it will be off.
so changing the position normally is just useless.
This would work
Positon {0.5,-SizeXOffset},{0.5,-SizeYOffset}
SizeX/YOffset being 50% of the Size Offset.
For instance, if your frame's size is {0,20},{0,50}, it would be
Position {0.5,-10},{0.5,-25}
Edit:
If you work only with scale, you can use
Position {0.3,0},{0.3,0}
Size {0.4,0}, {0.3,0}
It's quite obvious how this works.
thanks!! :D this worked
This discussion is preserved as it was. New answers, comments, and votes are closed.
3 comments
Make the position Udim2.new(.5,-(HalfSizeXOffset),.5,-(HalfSizeYOffset))
what is HalfSizeXOffset and HalfSizeYOffset?
half of the size's xOffset and yOffset