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
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
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
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
Thank you!! Ill be using clocktime from now on