bool = true
function regen(part)
	if bool == false then return end
	if part.Parent:FindFirstChild("Humanoid") ~= nil then
		part:Destroy()
		wait(1)
		part:Clone()
	end
	wait(5)
	bool = true
end
script.Parent.Touched:connect(onTouched)

I'm so confused. I mean, I know that debounce must be used, but...

1 comment

0

Oh, I used debounce wrong xD