The script works just fine on its own, but I need it to change fog color to black once it's set to night and then switch the fog color back to blue when it's day. I tried adding lighting.FogColor = [color] to it but then it breaks. Heres my time script for reference:
local lighting = game.Lighting
local btn = script.Parent
btn.MouseButton1Click:Connect(function()
if lighting.ClockTime == 15.5 then
lighting.ClockTime = 21
btn.Text = "Day"
lighting.FogEnd = 250
else
lighting.ClockTime = 15.5
btn.Text = "Night"
lighting.FogEnd = 1000000
end
end)
Please help and thank you!
