Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

What Variable of Tweenservice (Udim2) for Gui changes the position downwards?

I've tried a lot I just dont really undertand what combo of the four numbers brings it down

WholeLabel:TweenPosition(UDim2.new(1, 0,0, 1), "Out", "Elastic", 5)

2 comments

0

It would be the second “1” that is the Y value

0

Are you sure? I thought the third and fourth arguments for UDim2.new() were the y-scale and y-offset.

1 answer

✓ Accepted answer

UDim2 has four values:

UDim2.new(x_scale,x_offset,y_scale,y_offset)

Scale is a decimal value, example: 0.5. It "scales" the GUI down depending on what that value is.

Offset is an integer, example: 50. It stays the same size on all screens.

This discussion is preserved as it was. New answers, comments, and votes are closed.