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

Why wont this print? I have no console errors and I haven't noticed anything wrong

I have a script that sets the time to 19, and it works, but then this doesn't go through?

if game.Lighting.TimeOfDay == 19 then 
   print("19")
end

1 answer

✓ Accepted answer

TimeOfDay is written in 24 hour time format so you would have to do:

if game.Lighting.TimeOfDay == 19..":"..00..":"..00 then

Alternatively you can just use ClockTime which converts 24 hour time to hours.

if game.Lighting.ClockTime = 19 then

1 comment

0

Thank you!! Ill be using clocktime from now on

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