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

How to stop animation from going back to start?

Asked by 5 years ago

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

Log in to vote
1
Answered by 5 years ago

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

Ad
Log in to vote
0
Answered by
ew098 0
5 years ago

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

Answer this question