My basic running script not working

Interesting! I never knew there was a function to detect when a humanoid is running, fascinating

I tried this running before but it was on a server script but if it needa be in local I will try

Now the running animation doesn’t work :disappointed:
Screenshot (383)
Is in local script to btw

The animation was working before though, right? And what exactly isn’t working at this point?

The run animation was still running even if the walk speed was less then 10 which cause a big problem cause even the idle was replaced with this running animation to

And even when running animation running even when your not moving

Oh, alright. You can try this, I’m not sure it’ll work but at least you can try:

If humanoid.WalkSpeed >= 10 then
anim = humanoid:LoadAnimation(katana.Animation)
anim:Play()
else
anim:Stop()
Yes = humanoid:LoadAnimation(katana.Animation)
Yes:Play()
end


you mean like this?

Yes, like that except remember you already defined humanoid, so no need to put script.Parent.Parent:FindFirstChild(“Humanoid”) each time, but see if that works

If so that still doesn’t work :disappointed:

Also me putting script.Parent.Parent:FindFirstChild(“Humanoid”) is kinda a habit lol

1 Like

Ugh, well maybe you could try reading the animation documentation, the issue could be something to do with how you’re loading your animations

anim docs

Any word on how its going? Did you read the documentation and did it help?

I read it but unfortunately didn’t help so I decided to leave it for a few a days :disappointed:

Man, im sorry, i wish i couldve helped better but at this point im a bit stumped