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

How to stop animation at the end?

When animation plays, the body goes back to its initial position. How do I make it so it keeps its position at the end of the animation? Thank you :D

1 answer

✓ Accepted answer

When you set an AnimationTrack's speed to 0, it will freeze the animation at that moment. So, if you wait until the end of the animation and do this, it should hold its position.

You can try this first:

AnimTrack:Play()
wait(AnimTrack.Length)
AnimTrack:AdjustSpeed(0)

But if the animation finishes before it has time to freeze, you can try slightly reducing the wait time:

AnimTrack:Play()
wait(AnimTrack.Length - 0.1)
AnimTrack:AdjustSpeed(0)

1 comment

0

Thankss

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