Stop animation from another script?

I have a thing where you step into an area the player gets frozen (walk speed set to zero and humanoid root part anchored). The only problem is that the player’s walking animation won’t stop when frozen. I have tried to use Stop() on the walking animation but it didn’t work, could anyone help?

Thanks for reading!


One of the ways you can fix this is by changing their state type by…:


This should freeze the player in place

1 Like

You could stop all running animations using

for _,thisTrack in pairs (Humanoid.Animator:GetPlayingAnimationTracks()) do

That does not work, PlatformStand is not a valid state according to the error.

Ah, yes, I think it’s Enum.HumanoidStateType.PlatformStanding
instead, sorry about that
Hope that helps

1 Like

Oh yes, I tried that and it didn’t work.

Ah, sorry I don’t know what else to do then, maybe njesk12’s post might work instead. Sorry for the inconvenience

1 Like

It did not work, but I solved it. The issue was that I anchored the HumanoidRootPart and it froze it’s last animation, the only problem I have now is that the player can jump

Humanoid.JumpPower = 0

More junk words for min

Or Humanoid.JumpHeight = 0 if you’re using JumpHeight

1 Like

I used that and it worked, thank you!