Any recent updates that could have broke this code? This has worked for the past like two weeks and today it just suddenly does not work anymore and I am not sure why. Can anyone explain why this doesn't wok or how to fix it? It's just a script in the Workspace that makes the place darker as night comes and brighter as day arrives:
local l = game:service("Lighting") while true do wait() if l.TimeOfDay == "17:50:00" then l.Ambient = Color3.new(55/255, 55/255, 55/255) l.OutdoorAmbient = Color3.new(90/255, 90/255, 90/255) elseif l.TimeOfDay == "18:45:00" then l.Ambient = Color3.new(0/255, 0/255, 0/255) l.OutdoorAmbient = Color3.new(24/255, 24/255, 24/255) elseif l.TimeOfDay == "05:35:00" then l.Ambient = Color3.new(55/255, 55/255, 55/255) l.OutdoorAmbient = Color3.new(90/255, 90/255, 90/255) elseif l.TimeOfDay == "06:25:00" then l.Ambient = Color3.new(126/255, 126/255, 126/255) l.OutdoorAmbient = Color3.new(182/255, 182/255, 182/255) end end