while true do
if game.Lighting.Brightness >= 0.9 or game.Lighting.Brightness <= 0 then
script.Parent.SpotLight.Enabled = true
else
script.Parent.SpotLight.Enabled = false
end
wait()
end
while true do
local minutes = game.Lighting:GetMinutesAfterMidnight()
if minutes >= 1020 or minutes <= 480 then
script.Parent.SpotLight.Enabled = true
else
script.Parent.SpotLight.Enabled = false
end
wait()
end
So these lights turn on when brightness is 0 "a storm is going by" or the time is at night. The problem these being two scripts, during day with brightness 0 the lights flicker because the scripts are fighting each other. How could these scripts be combined so if one is true then the lights will turn on even if the other is false?

1 comment
well I figured it out myself, I gave you too many errors to work with in the first place, thank you for getting me where I needed to get