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.

1 comment
i think you forgot to write debounce = false after the other things in the function.... i'm not sure it will fix the script but it's still a big problem