I know I’ve probably looked over some stupid issue, and it’s glaringly obvious to everyone else, but I can’t seem to find what’s making this break.
script:
local Block = script.parent
local debounce = false
local function disappear()
if debounce then return end
debounce = true
local count = 0
while count < 1 do
Block.Transparency = count + 0.1
wait(0.05)
end
if Block.Transparency == 1 then
Block.CanCollide = false
end
wait(2)
Block.CanCollide = true
Block.Transparency = 0
debounce = false
end
Block.Touched:Connect(disappear)