Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- L = Game:GetService("Lighting")
- while true do
- wait(1)
- T = L:GetMinutesAfterMidnight()
- L:SetMinutesAfterMidnight(T + 1)
- if T < 300 then
- Game.Lighting.OutdoorAmbient = Color3.new(30/255,30/255,30/255)
- elseif T > 300 and T < 390 then
- Game.Lighting.OutdoorAmbient = Color3.new((30+(T-300)/1.5)/255,(30+(T-300)/1.5)/255,(30+(T-300)/1.5)/255)
- elseif T > 390 and T < 600 then
- Game.Lighting.OutdoorAmbient = Color3.new((90+(T-390)/7)/255,(90+(T-390)/7)/255,(90+(T-390)/7)/255)
- elseif T > 600 and T < 840 then
- Game.Lighting.OutdoorAmbient = Color3.new(120/255,120/255,120/255)
- elseif T > 840 and T < 1050 then
- Game.Lighting.OutdoorAmbient = Color3.new((120-(T-840)/7)/255,(120-(T-840)/7)/255,(120-(T-840)/7)/255)
- elseif T > 1050 and T < 1140 then
- Game.Lighting.OutdoorAmbient = Color3.new((90-(T-1050)/1.5)/255,(90-(T-1050)/1.5)/255,(90-(T-1050)/1.5)/255)
- elseif T > 1140 then
- Game.Lighting.OutdoorAmbient = Color3.new(30/255,30/255,30/255)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement