I have this code here that changes the fog color with the time of day, but it is not working the way it should.

It turns black correctly, but the fog doesn't turn blue.

`function onLightingChanged()

if game.Lighting.TimeOfDay == "6:00:00" then
	game.Lighting.FogColor = Color3.new(180/255, 255/255, 234/255)  --Day
end

if game.Lighting.TimeOfDay == "18:00:00" then
	game.Lighting.FogColor = Color3.new(0/255, 0/255, 0/255) --Night
end

end`

local Lighting = game:GetService("Lighting")

Lighting.LightingChanged:connect(onLightingChanged)

5 comments

0

I want a certain blue which is 180,255,234

0

Oh.

0

But specifically what Color Light Blue, Dark Blue?

0

Oh Light Blue I updated !!

0

Where did your answer go? It's not there anymore.