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

Animation Script Help/Assistance? I really need it

Asked by 6 years ago
Edited by SerpentineKing 6 years ago

I have tried numerous times, to make a script where when an NPC's speed hits 0 it stops playing an animation, but all I got is when it goes to 0 it still plays. Its kind of annoying (Also would this work for a morph (StarterCharacter?) ) This is my script so far.

1--HurtSins 2019
2 
3local hum = script.Parent:WaitForChild("Zombie")
4local anim = hum:LoadAnimation (script:FindFirstChildOfClass("Animation"))
5anim.Looped = true
6anim:Play()
0
(The NPC's humanoid is called "Zombie.") HurtSins_Alt 0 — 6y
0
Now that I've added the code block... Can you please display the code you've written for when the humanoid's walkspeed hits zero? SerpentineKing 3885 — 6y
0
You never defined "script" on line 4 sheepposu 561 — 6y

Answer this question