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

Tweening before making it invisible ?

Asked by
Bulvyte 388 Moderation Voter
7 years ago
test:TweenPosition(UDim2.new(0.2,0,-1,0),"In","Bounce",true)
wait()
test.Visible = false

It should tween first then make it invisible now what it does is make invisible and tween back without seeing the animation. How'd ya do it ?

1 answer

Log in to vote
1
Answered by 7 years ago
Edited 7 years ago

You're not setting how long you want the tween to last.

Where the true is, you need to set the number, in seconds, that you want the tween to take.

test:TweenPosition(UDim2.new(0.2,0,-1,0),"In","Bounce",5)
test.Visible = false

Good Luck!

0
Still nope. Bulvyte 388 — 7y
0
@Bulvyte just add in the duration to the wait e.g. wait(5) User#5423 17 — 7y
0
I thought the script waited for the tween to end. User#11440 120 — 7y
0
No unfortunately, the override param means that you can overwrite the previyous tween action. Good for things like a progress bar User#5423 17 — 7y
0
Nevermind, i made the gui visible all the time and hidden it more logical :) Bulvyte 388 — 7y
Ad

Answer this question