I cant get this script I made to work... is there anything I'm doing wrong
wait(3)
local Anim = script.Parent.Zombie:LoadAnimation(script.Parent.Attack1)
local Enabled = false
script.Parent.UpperTorso.Touched:connect(function(part)
if part.Parent:FindFirstChild("Humanoid") then if Enabled == false then Enabled = true Anim:Play() wait(0.3) part.Parent:FindFirstChild("Humanoid"):TakeDamage(20) wait(0.2) Enabled = false end end
end)