I'm wondering how I can have a part that only registers getting touched once and ends the code instead of having it repeatedly run the code every time it gets touched like I have below:
local health = script.Parent.Parent.Health.Value
function onHit(hit)
health = health - 10
print (health)
end
script.Parent.Touched:connect(onHit)

1 comment
Horrible answer. wait(5) will just delay the damage