function onTouched(hit)
local debounce = false
local human = hit.Parent:findFirstChild("Humanoid")
local genfire = script.Parent.Fire:clone()
if (human ~= nil) and debounce == false then
debounce = true
genfire.Parent = human.Parent:findFirstChild("Torso")
wait(5)
genfire:Destroy()
wait(10)
debounce = false
end
end
script.Parent.Touched:connect(onTouched)
genfire is a variable and i am destroying it after five seconds, but i tested this and the debounce broke

1 comment
OP is living in 2008 while we are living in 2019