#Night Light Settings
34 messages · Page 1 of 1 (latest)
here some pics
Ok
i have to update my drive to put screenshots and that would take 15 miunites
Alr
so we can just discuss it
so there are 2 settings and one is sunrise/sunset and midnight
Ok
the game current setting is sunrise
Ok
local RunService = game:GetService("RunService")
local Lighting = game:GetService("Lighting")
local lightsettings = Lighting.LightingSettings
local night = workspace["Lighting Sets"].Night
local function updateTime()
local currentTime = Lighting.ClockTime
local timeInterval = 0.05
local newTime = currentTime + timeInterval
Lighting.ClockTime = newTime
if Lighting.ClockTime == 18 then
lightsettings:Apply(night)
print(Lighting)
end
end
RunService.Heartbeat:Connect(updateTime)
and when it turns 18 on the clock. The setting should change into midnight mode
but it doesn't work
Try to make it
local RunService = game:GetService("RunService")
local Lighting = game:GetService("Lighting")
local lightsettings = Lighting.LightingSettings
local night = workspace["Lighting Sets"].Night.Value
local function updateTime()
local currentTime = Lighting.ClockTime
local timeInterval = 0.05
local newTime = currentTime + timeInterval
Lighting.ClockTime = newTime
if Lighting.ClockTime == 18 then
lightsettings:Apply(night)
print(Lighting)
end
end
RunService.Heartbeat:Connect(updateTime)
Try this
not even print works
it is a script
Bro you did a script with nothing to support with and you think it will work?