the npc was supposed to damage the player and play an animation, but is not playing the animation
Hum = script.Parent.Parent.Humanoid function onTouch(part) local humanoid = part.Parent:FindFirstChild("Humanoid") if (humanoid ~= nil) then -- if a humanoid exists, then humanoid.Health = humanoid.Health - 1 -- damage the humanoid script.Parent.Parent.Humanoid:LoadAnimation(Hum.Anim) end end
script.Parent.Touched:connect(onTouch)