script.Parent.Touched:Connect(function(touched) script.Parent.Transparency = 0 wait(3) script.Parent.Transparency = 1 end) function spike(partTouching) if partTouching.Parent:FindFirstChild("Humanoid") then partTouching.Parent.Humanoid.Health = 0 end end script.Parent.Touched:Connect(spike)
Use this :
local Debounce = false script.Parent.Touched:Connect(function(touched) if Debounce == false then Debounce = true --script here wait(1) -- amount of time to set Debounce = false Debounce = false end end)
if it doesn't work, tell me