I've got a function in my script so that when (below) is true, it will trigger the loop.
while game.Lighting.TimeOfDay > 070000 and game.Lighting.TimeOfDay < 210000 do
The only problem is that my example doesn't work. The Output is telling me "attempt to compare number with string" So how am I supposed to check the TimeOfDay value within a script?

1 comment
Your script doesn't work because the TimeOfDay property holds a string value; http://wiki.roblox.com/index.php?title=API:Class/Lighting/TimeOfDay