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

How to detect when a animation is finished playing?

How can I detect if a animation is finished playing?

1 comment

1

print(AnimationTrack.Length)

3 answers

Or to add on the above answer, you can wait until it is done playing in the same block of code.

local animationTrack = humanoid:LoadAnimation(animationInstance)
animationTrack:Play()
wait(animationTrack.Length)
--finished playing

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