How do you wait for an animation to finish playing?

I have a script that plays an animation, then plays an animation after the first one however, the second animation plays right after the first one starts playing (It doesn’t wait for the first animation to finish playing! :confused: ) is there any way I can wait for an animation to finish playing?

The animation is an animation that gets loaded into the player’s humanoid, then played.

7 Likes

Did you try searching around?

22 Likes

AnimationTracks have an event called Stopped. This is fired once the animation is complete.
Here is a link: AnimationTrack | Documentation - Roblox Creator Hub

You could try this:

Animation:Play()
Animation.Stopped:Wait()
-- proceed
46 Likes