script.Parent.Position = UDim2.new({0, 8},{1, -80})
While editing, it shows at the bottom left corner of the screen, but if I run this script in the game, the GUI goes to the top left corner. ({0,0},{0,0})
script.Parent.Position = UDim2.new({0, 8},{1, -80})
While editing, it shows at the bottom left corner of the screen, but if I run this script in the game, the GUI goes to the top left corner. ({0,0},{0,0})
You don’t need the curly brackets in the arguments; four consecutive values will do.
script.Parent.Position = UDim2.new(0, 8, 1, -80)
Well that would be annoying if you ever needed to copy and paste the values. They should let you choose to put the curly brackets there or not, just like how they let you choose to put a semicolon at the ends of lines or not.
There is an alternative way to create an UDim2 which takes two UDim values, one for X and one for Y.