Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do i make a script that detects when is day and when is night?

i am making a horror maze and i don't know to detect if it's day or night. I am using this to make a script that fogs the screen in night time but is normal in day time.

1 answer

✓ Accepted answer
if game.Lighting.TimeOfDay == '0:00:00' then -- midnight 

end

1 comment

0

This discussion is preserved as it was. New answers, comments, and votes are closed.