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

How do I override TweenPosition?

Asked by 8 years ago

Did Roblox's tweenPosition override mechanic stop working?

For example...

script.Parent:TweenPosition(UDim2.new(1, 0, 0, 0), "Out", "Quad", 1.6, true)
wait(1.5);
script.Parent:TweenPosition(UDim2.new(0, 0, 0, 0), "Out", "Quad", 3, false)

This was an example given on the roblox wiki. It is supposed to interrupt the move and move it in a different direction, but alas, it doesn't fire the second method at all...

1 answer

Log in to vote
3
Answered by
BlueTaslem 18071 Moderation Voter Administrator Community Moderator Super Administrator
8 years ago

The fourth parameter is whether or not to override any currently ongoing tweens.

Your second call sets override to false -- you are asking it to not override the previous.

Use true instead, like in the first call, if you want to override the previous tween.

Ad

Answer this question