Stop all animations

I want to make a time-stop power and I need to stop all player animation

I tried to stop the “animator” in the humanoid but it doesn’t work so I tried to stop all the animations in the “Animate” script but it still doesn’t work

someone could help me to at least know where to go please

thank you for listening to me

1 Like

Animator create an AnimationTrack for each animation you give to it. Each track has functions like Play() Stop() etc.

You could get all animations tracks in Animator with GetPlayingAnimationTracks(). Its an array, then iterate that array to stop each one

Thanks, I’ll look into it, one last question, do I have to do it on the server side?

If you do it on client it will replicate to server, if you do it in server, client will be stopped too. But, if animate script still enabled or having the animations loaded, animations will start again if player moves/jumps, just make sure you are handling that too.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.