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

How do I make UDim2 in a surfacegui move up half way on the brick then stay still?

Asked by 7 years ago
Edited 7 years ago

I need the test surfacegui to go up half way then stay still. It currently just slides all the way up until you can't see it but I simply just want it to go up half way and stop. Can anyone help me?

The code is below!

test:TweenPosition(UDim2.new(0.5, 1, -10, 0), "Out", "Quad", 20, false, nil)

1 answer

Log in to vote
1
Answered by 7 years ago
Edited 7 years ago
test:TweenPosition(UDim2.new(0.5, 1, 0.5, 0), "Out", "Quad", 20, false, nil)

You set the X axis to 0.5, not the Y.

Ad

Answer this question