UevKF8zjRV_WEtpJsXhr
We use cookies on this site to enhance your user experience

-- loop that will repeat the on and off for loops

while true do

-- Increase in brightness

for currentBrightness = 0, 5, brightnessChange do

light.Brightness = currentBrightness

wait(timeChange)

end

-- Decrease in brightness

for currentBrightness = 5, 0, -brightnessChange do

light.Brightness = currentBrightness

wait(timeChange)

end

end