db = false
script.Parent.Touched:connect(function(hit)
pcall(function()
if db == false then
db = true
hit.Parent.Humanoid:TakeDamage(50)
wait(1)
db = false
wait(1)
db = true
end
end)
end)
My script works, except for the fact that when the zombie is hit, he no longer does any damage. Does anyone know why? Should this be in a loop? Edit: Wait no it only hits once now?

2 comments
OMG TYSM! It didnt work at first, but I added a line after line 5 to make db = true. Thanks, heres ur karma!
Glad I was able to help!