Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Can you detect animation with a script?

Asked by 8 years ago

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?

0
Look up keyframes. It lets the script know that the frame of the animation was reached. xPolarium 1388 — 8y

1 answer

Log in to vote
0
Answered by 8 years ago

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.

Ad

Answer this question