i have this script it damages the humanoid upon being touched but it breaks after touching something without a humanoid in it. here is the script
local PartHit = false
script.Parent.Touched:Connect(function(hit)
if not PartHit then
PartHit = true
hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - 10
wait(0.5)
PartHit = false
end
end)
thanks in advance
