debounce = false function hit (h) if h.Parent:findFirstChild("Humanoid") and debounce == false then debounce = true h.Parent.Humanoid.Health = h.Parent.Humanoid.Health - 5 print("You have damaged: ".. h.Parent.Name) end end script.Parent.Touched:connect(hit)
I heard R15 has a problem with collisions, but I've seen other game's work with it perfectly. Does anyone has a solution to it? Btw, It doesn't work OR print at all.
I tried this script out and it works, Go ahead.
function onTouched( hit ) hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - 5 end script.Parent.Touched:connect( onTouched )