Hi, I'm a really really bad scripter and I only know basic and easy stuff. When I try to test my game I jump on the laser consistently, it wouldn't kill. This is my script: `~~~~~~~~~~~~~~~~~ debounce = false script.Parent.Touched:Connect(function(hit) if not debounce then
debounce = true
if hit.Parent:FindFirstChild("Humanoid") then
hit.Parent:FindFirstChild("Humanoid"):TakeDamage(20)
end
wait(0.5)
debounce = false
end
end)
`
Does it have to be published for it to kill instantly?
I don't really know how to tab the script because i'm fairly new to this site so please don't blame me. Sorry.

4 comments
I messed up sorry. :/
debounce = false script.Parent.Touched:Connect(function(hit) if not debounce then debounce = true if hit.Parent:FindFirstChild("Humanoid") then hit.Parent:FindFirstChild("Humanoid"):TakeDamage(20) end wait(0.5) debounce = false end end)
Put wait(0.5) and debounce = false before line 5
Ok can you put that in answers? Thanks!