local Lighting = game:GetService("Lighting") local RunService = game:GetService("RunService") local DAY_LENGTH = 120 local START_TIME = 12 local CURRENT_TIME = START_TIME local TIME_SPEED = 24 / DAY_LENGTH Lighting.ClockTime = CURRENT_TIME Lighting.GeographicLatitude = 30 Lighting.Brightness = 1.5 Lighting.FogColor = Color3.fromRGB(180, 190, 210) Lighting.OutdoorAmbient = Color3.fromRGB(128, 128, 128) Lighting.Ambient = Color3.fromRGB(60, 60, 60) Lighting.GlobalShadows = true Lighting.ExposureCompensation = 0.25 while true do CURRENT_TIME = CURRENT_TIME + TIME_SPEED * RunService.Heartbeat:Wait() if CURRENT_TIME >= 24 then CURRENT_TIME = 0 end Lighting.ClockTime = CURRENT_TIME if CURRENT_TIME >= 6 and CURRENT_TIME < 18 then Lighting.Brightness = 1.5 Lighting.FogColor = Color3.fromRGB(180, 190, 210) Lighting.OutdoorAmbient = Color3.fromRGB(128, 128, 128) Lighting.Ambient = Color3.fromRGB(60, 60, 60) Lighting.ExposureCompensation = 0.25 else Lighting.Brightness = 0.1 Lighting.FogColor = Color3.fromRGB(10, 10, 20) Lighting.OutdoorAmbient = Color3.fromRGB(30, 30, 50) Lighting.Ambient = Color3.fromRGB(20, 20, 40) Lighting.ExposureCompensation = -0.5 end if CURRENT_TIME >= 5 and CURRENT_TIME < 7 then local progress = (CURRENT_TIME - 5) / 2 Lighting.Brightness = 0.1 + (1.4 * progress) Lighting.FogColor = Color3.fromRGB( 10 + (170 * progress), 10 + (180 * progress), 20 + (190 * progress) ) Lighting.ExposureCompensation = -0.5 + (0.75 * progress) end if CURRENT_TIME >= 17 and CURRENT_TIME < 19 then local progress = (CURRENT_TIME - 17) / 2 Lighting.Brightness = 1.5 - (1.4 * progress) Lighting.FogColor = Color3.fromRGB( 180 - (170 * progress), 190 - (180 * progress), 210 - (190 * progress) ) Lighting.ExposureCompensation = 0.25 - (0.75 * progress) end end