local debounce = false
script.Parent.Touched:connect(function(p)
if not debounce then
debounce = true
local explo = Instance.new("Explosion")
wait(0.1)
debounce = false
explo.Parent = workspace
explo.Position = script.Parent.Position
explo.BlastRadius = 0
p.Parent.Humanoid:TakeDamage(100)
script.Parent:Remove()
end
end)
i modified this script for a similar purpose, but i do not know how to remove the debounce. also, i tried script.Parent:Remove() at the bottom, but does not remove the part

3 comments
Not really sure what you're trying to do here. But, here's some other tips: Don't use :Remove(), use :Destroy(). Don't destroy script.Parent. Set the parent property last unless there's a reason not to.
i already tried to use Destroy(), still didn't work
i would keep debounce because otherwise .Touched fires insanely