Is there a way to stop a Tweening in ROBLOX studio?

Asked

Viewed 82 times

0

I want a command that stops a Tweening in ROBLOX studio, for example:

frame:TweenPosition(UDim2.new(0, 200, 0, 0),
    "Out", "Quad", 1)

But when receiving some condition, there is some way to stop this Tweening?

1 answer

0

At the moment it is not possible, but defining the fifth (natively sixth) argument of this call if it becomes possible to replace your Tweening with another.

(Unfortunately there’s no way I know if the example works.)

Example of how to stop a Tweening (untested):

frame:TweenPosition(UDim2.new(0, 200, 0, 0),
    "Out", "Quad", 1, true);

frame:TweenPosition(frame.Position,
    "Out", "Quad", 0, --[=[opcional]=]true);

Documentation:

  • didn’t work :(

  • @arthurgps There was no error? Sorry, I don’t understand of Roblox :/ .

  • there was no error, but did not stop Tweening

  • @arthurgps Used the fifth argument true as in the example? It has to be both called.

  • yes,I used the true

  • @arthurgps2 Tries to log back from the latest Tweening? print(frame:TweenPosition(frame.Position, "Out", "Quad", 0, true));, can say what log? If the first return is false, the first Tweening cannot be replaced, I think.

Show 1 more comment

Browser other questions tagged

You are not signed in. Login or sign up in order to post.