local part = script.Parent local debounce = false local function onTouch(otherPart) local character = otherPart.Parent local humanoid = character and character:FindFirstChildOfClass("Humanoid") if humanoid and not debounce then debounce = true task.wait(2) part.Transparency = 1 part.CanCollide = false task.wait(1) part.Transparency = 0 part.CanCollide = true debounce = false end end part.Touched:Connect(onTouch)