-- Get the Lighting service
local lighting = game:GetService("Lighting")
-- Define the time of day when you want to change the lighting
local timeOfDay = 6 -- For example, 6 represents 6:00 AM
-- Function to update the lighting based on the time of day
local function updateLighting()
if lighting.ClockTime >= timeOfDay and lighting.ClockTime < timeOfDay + 12 then
-- Set your desired lighting settings for daytime
lighting.Ambient = Color3.fromRGB(200, 200, 200)
lighting.Brightness = 2
lighting.ExposureCompensation = -0.7
lighting.Atmosphere = Color3.fromRGB(153, 153, 153)
lighting.Density = 0.3
lighting.Haze = 2.15
lighting.Glare = 0.4
-- Add more properties as needed
else
-- Set your desired lighting settings for nighttime
lighting.Ambient = Color3.fromRGB(50, 50, 50)
lighting.Brightness = 0.5
lighting.ExposureCompensation = -0.7
lighting.Atmosphere = Color3.fromRGB(127, 127, 127)
lighting.Density = 0.6
lighting.Haze = 2.15
lighting.Glare = 0.4
-- Add more properties as needed
end
end
-- Call the updateLighting function initially
updateLighting()
-- Connect the function to the ClockTime property changed event
lighting:GetPropertyChangedSignal("ClockTime"):Connect(updateLighting)
** You are now Level 1! **