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

How do I override TweenPosition?

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

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.

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