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

How come this detect timeofday script isn't working?

Asked by 8 years ago

For some reason it's not working. I check the TimeOfDay and it hits the direct time where its supposed to fog up but somehow it is not working! I need pro people here ASAP.

Day/Night Script(The thing that changes the time from day to night)

while true do
game.Lighting:setMinutesAfterMidnight(game.Lighting:getMinutesAfterMidnight()+0.2)
wait()
end

Fog Script(It's not working!)

while true do
    wait()
    if game.Lighting.TimeOfDay == "8:00:59" then
        game.Lighting.FogEnd = 50
        game.Lighting.Brightness = 0
        wait(250)
        game.Lighting.FogEnd = 100000
        game.Lighting.Brightness = 1
    end
end

Thanks

0
"game.Lighting:setMinutesAfterMidnight(game.Lighting:getMinutesAfterMidnight()+" why is there a plus there with no function? KenzaXI 166 — 8y
0
It still works, I just forgot to add 4 laughablehaha 494 — 8y

Answer this question