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

How to stop animation from going back to start?

I have an animation that moves the character based on the way they are facing. It barrel rolls them to the left (a character is a plane) whenever space is hit. But the problem is that it moves the character back to the start of the animation when the animation finishes! I don't want this.

I have tried pausing the animation just before it ends, which makes it stay in the same position at the end of the animation, but when pressing space, the character goes back to the beginning of the animation and plays from there.

So how can I make the animation end without going back to the start of the animation?

2 answers

This pauses the animation

animationTrack:AdjustSpeed(0)

and to unpause it you can do

animationTrack:AdjustSpeed(1)

if this helped you out, please mark it as the answer

if its an tweening animation then make it not reverse back idk

if its an character animation then open it with a animation plugin an make it not loop then publish the animation again

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