Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Fog color script issue?

Asked by 10 years ago

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)

0
I want a certain blue which is 180,255,234 austint30 5 — 10y
0
Oh. HexC3D 830 — 10y
0
But specifically what Color Light Blue, Dark Blue? HexC3D 830 — 10y
0
Oh Light Blue I updated !! HexC3D 830 — 10y
0
Where did your answer go? It's not there anymore. austint30 5 — 10y

Answer this question