Animation resets after playing

Hello there. So, I was tasked with making a animation on pressing a button and playing the animation works perfectly fine, however when the aniamtion is finished playing it just resets. How do I prevent that from happening?

https://csgo-russians.go-get-a.life/dU6ORe

1 Like

I think you set the Looped property of the animation to true, try going back into your animation from the ANimation editor and check if you accidentally made it loop. Or alternatively, in your script, before playing the animation, just set it to false from there

AnimationTrack.Looped = false

Where AnimationTrack is the track you have that has that animation

I checked that the animation itself isn’t set to loop and added that one codeline real quick. Still didn’t work, since the character didn’t remain in the pose but just reset to normal.

Oh you wanted the player to remain in that pose? Then what you have to do is make an animation where it’s just the final position you want it to have, set that one to looped and after the rising animation played, play the new animation you made

2 Likes

Ah, okay thank you. I’ll just try that real quick.

1 Like

Good luck! It should do the trick since you want it to make the player stay in the final position at the end of the rising animation. If you need any help I’ll be here!

2 Likes