I want to do this:
:TweenPosition(UDim2.new(x.Offset = 40), "Out", "Quad", .1)
But the normal formula is:
:TweenPosition(UDim2.new(0, 40, 0, 0), "Out", "Quad", .1)
How would I execute the first one? If you ask why I cant use the second one, it's because the function finds a GUI (which have different positions) and I don't want to make them all 0 on the Y axis. I want the Y axis to remain as it is.
Then, you could use this:
(Assuming gui
is the GUI we're tweening)
gui:TweenPosition(UDim2.new(gui.Position.X.Scale, 40, gui.Position.Y.Scale, gui.Position.Y.Offset), "Out", "Quad", .1)
If you wanted to add 40 to the Y position (move it downward):
gui:TweenPosition(gui.Position + UDim2.new(0,0,0,40), "Out", "Quad", .1)