This is a script inside a ColorCorrection in lighting
while true do
local color = math.random(1,4)
if color == 1 then
script.Parent.Brightness = -0.05
wait(3)
print("1")
else
if color == 2 then
script.Parent.Brightness = -1
wait(0.2)
script.Parent.Brightness = -0.05
wait(1)
print("2")
else
if color == 3 then
script.Parent.Brightness = -1
wait(0.2)
script.Parent.Brightness = -0.05
wait(0.1)
script.Parent.Brightness = -1
wait(0.2)
script.Parent.Brightness = -0.05
wait(4)
print("3")
if color == 4 then
script.Parent.Brightness = -0.05
wait(3)
print("4")
end
end
end
end
wait(1)
end
To make the screen randomly flash black, not working, nothing in output not even printing
any idea as to what I did wrong? :p

2 comments
You only put if, rather than elseif. elseif sorts multiple possible outcomes, if only sorts 1.
You only put if, rather than elseif. elseif sorts multiple possible outcomes, if only sorts 1.