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

Can you detect animation with a script?

Can you detect if there is a animation via a script? You load an animation into the humanoid there is no brick or object, there is only status and Animator; so Waitforchild wouldn't even work. So is there any way to detect?

1 comment

0

Look up keyframes. It lets the script know that the frame of the animation was reached.

1 answer

✓ Accepted answer

There is an event that is fired whenever an animation is played onto the humanoid. The event returns the animation. It is

humanoid:AnimationPlayed(animationthatwasplayed)
animationthatwasplayed:Stop()

Check out the API Documentation here.

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