I want the GUI to be relatively the same to the screen size. Can anyone help?
How do you position a GUI to fit all screens?
2 answers
You would change the first number in the bracket's of the size to 1, like this: {1,0},{1,0}.
UDim2 has two ways of sizing, by offset and by scale. Scale will be the same fraction of the screen for everyone, while offset change depending on the window size of Roblox, the screen size, and resolution.
Scale is from 0-1, while offset can be any number. The best way to do GUIs is to have scale as a fraction, and ONLY use offset for spacing (when you always want exactly 3 pixels between your GUI elements)
The constructor for this is UDim2.new(XScale,XOffset,YScale,YOffset) UDim2.new(1/4,0,1/2,0) will be 1/4th of the screen's width and 1/2 of the screen's height, for example.
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
This doesn't work...
Nevermind I got it working xD