Typical script like this:
local debounce = false
function onTouch(part)
local human = part.Parent:findFirstChild("Humanoid")
if (human ~= nil) and debounce == false then
debounce = true
human.Health = human.Health - 30
wait(1)
debounce = false
end
end
script.Parent.Touched:connect(onTouch)
But if player doesn't move, he will not recieve damage, how to change this?

1 comment
Try to remove the debounce.