the npc was supposed to damage the player and play an animation, but its not playing the animation (i had to repost, because i didnt used code block in the last question)
f = script.Parent.Parent.Humanoid:LoadAnimation(script.Parent.Parent.Humanoid.Anim) function onTouch(part) local humanoid = part.Parent:FindFirstChild("Humanoid") if (humanoid ~= nil) then -- if a humanoid exists, then humanoid.Health = humanoid.Health - 25 -- damage the humanoid f:Play() end end
script.Parent.Touched:connect(onTouch)

2 comments
You know you can edit questions right
oh sorry :c