Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 4 years ago

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)
0
It would be the second “1” that is the Y value DarkDanny04 407 — 4y
0
Are you sure? I thought the third and fourth arguments for UDim2.new() were the y-scale and y-offset. Sparks 534 — 4y

1 answer

Log in to vote
2
Answered by
sngnn 274 Moderation Voter
4 years ago

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.

Ad

Answer this question