This script is scripting point-lights in a brick. I would like it to turn off during the day, but I can't seem to combine the scripts overall. I think I'm missing a variable or I have the wrong variable. This script is for individual runway lights. Each light has to blink at different times. If you can, don't mess with the timing system, because that works correctly, my issue is adding turn off during day time hours.
while(wait())do
local l = game.Lighting:GetMinutesAfterMidnight()/60 -- Get hours after midnight :3
script.Disabled = l>6 or l<18 -- If it's before 6AM, or after 6PM turn it on
end
if script.disabled == true then
script.Parent.Light1.PointLight.Enabled = true
wait(0.001)
script.Parent.Light1.PointLight.Enabled = false
wait(0.001)
script.Parent.Light2.PointLight.Enabled = true
wait(0.001)
script.Parent.Light2.PointLight.Enabled = false
wait(0.001)
script.Parent.Light3.PointLight.Enabled = true
wait(0.001)
script.Parent.Light3.PointLight.Enabled = false
wait(0.001)
script.Parent.Light4.PointLight.Enabled = true
wait(0.001)
script.Parent.Light4.PointLight.Enabled = false
wait(0.001)
script.Parent.Light5.PointLight.Enabled = true
wait(0.001)
script.Parent.Light5.PointLight.Enabled = false
wait(0.001)
script.Parent.Light6.PointLight.Enabled = true
wait(0.001)
script.Parent.Light6.PointLight.Enabled = false
wait(0.001)
script.Parent.Light7.PointLight.Enabled = true
wait(0.001)
script.Parent.Light7.PointLight.Enabled = false
wait(0.001)
script.Parent.Light8.PointLight.Enabled = true
wait(0.001)
script.Parent.Light8.PointLight.Enabled = false
wait(0.001)
script.Parent.Light9.PointLight.Enabled = true
wait(0.001)
script.Parent.Light9.PointLight.Enabled = false
wait(0.001)
script.Parent.Light10.PointLight.Enabled = true
wait(0.001)
script.Parent.Light10.PointLight.Enabled = false
wait(2)
end`

3 comments
The reason why I am turning on and off, is that it's considered runway lights.
Oh, that makes sense. I will edit my answer to reflect that. [Done]
Thank you very much. It works great stop by once and I'll show you.