So, I'm making a combat script, that is basically finished, but I cannot figure out why it doesn't work.
dmg = true
dmg = true
script.Parent.Touched:connect(function(hit)
if hit.Parent.Parent.Parent.Parent.Humanoid and dmg == true then
hit.Parent.Parent.Parent.Parent.Humanoid:TakeDamage(5)
dmg = false
wait(1)
dmg = true
script:Destroy()
end
end)
So, basically the combat script clones a script into a Player's arm, but it doesn't seem to do any damage to anyone. Know why? [Btw this is a script.]

1 comment
that is not very helpfull