something is wrong or missing i just am too noob to know how to fix it
local Lighting = game:GetService("Lighting")
if game.Lighting.TimeOfDay == '14:00:00' then -- midnight
Lighting.FogEnd = 25
else
Lighting.FogEnd = 100
end
something is wrong or missing i just am too noob to know how to fix it
local Lighting = game:GetService("Lighting")
if game.Lighting.TimeOfDay == '14:00:00' then -- midnight
Lighting.FogEnd = 25
else
Lighting.FogEnd = 100
end
It because your defined your script to be set a 2 pm (14:00) all you have to do is change the time Make sure it's in a server script.
local Lighting = game:GetService("Lighting")
-- fog will fade between 25 and 200 studs
Lighting.FogStart = 2500
Lighting.FogEnd = 2000
minutesAfterMidnight = 0
while true do
minutesAfterMidnight = minutesAfterMidnight + 1
Lighting:SetMinutesAfterMidnight(minutesAfterMidnight)
wait()
end
it's not working is not doing anything
Edited try it now
you forgot about the fog
Wait
Done
i want the fog to disapear in daytime
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
midnight is 00:00:00, what your doing happens at 2pm