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 5 years ago
Edited by SerpentineKing 5 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.

--HurtSins 2019

local hum = script.Parent:WaitForChild("Zombie")
local anim = hum:LoadAnimation (script:FindFirstChildOfClass("Animation"))
anim.Looped = true
anim:Play()
0
(The NPC's humanoid is called "Zombie.") HurtSins_Alt 0 — 5y
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 — 5y
0
You never defined "script" on line 4 sheepposu 561 — 5y

Answer this question