I want a particle emitter to turn on and off every 2 seconds, but the debounce is 'glitched' this is on a server script
while true do
local dbo = false
local particle = script.Parent
if dbo == false then
dbo = true
particle.Enabled = false
else
dbo = false
particle.Enabled = true
end
wait(2)
print(dbo)
end

1 comment
What you were doing wrong it your script is that every time you the loop runs, you're changing dbo's value to false