of     1   

Virtual3D
#40308679Tuesday, January 04, 2011 2:17 AM GMT

Ok im making something that is only available on certain times of day. I want it to check if the time is night. But would I just make: if game.Lighting.TimeOfDay == "14:00:00" then But or would this work? if game.Lighting.TimeOfDay == "14:00:00" and game.Lighting.TimeOfDay == "24:00:00" then LOL I dont think it will. Get the idea?
Scriptoar
#40308768Tuesday, January 04, 2011 2:17 AM GMT

How would that work? It can't be two different times at once.
Virtual3D
#40309879Tuesday, January 04, 2011 2:30 AM GMT

Thats what Im trying to figure out and Im asking for help. Or is this even possible? Or I can make a value... Im confused xD
Scriptoar
#40310027Tuesday, January 04, 2011 2:32 AM GMT

if game.Lighting.TimeOfDay == "24:00" then --stoof end
Scriptoar
#40310142Tuesday, January 04, 2011 2:33 AM GMT

if game.Lighting.TimeOfDay == "24:00" then --stoof elseif game.Lighting.TimeOfDay == "14:00" then --stoof end
BEART12
#40310248Tuesday, January 04, 2011 2:34 AM GMT

If stuff < other stuff then
Virtual3D
#40310566Tuesday, January 04, 2011 2:38 AM GMT

I guess I can use that many elseif but that be too much, counting the minutes of the time :3
Virtual3D
#40310666Tuesday, January 04, 2011 2:39 AM GMT

wait nvm I think I got it :D
Scriptoar
#40310857Tuesday, January 04, 2011 2:41 AM GMT

Oh are you doing minutes as well? Well here is a example if game.Lighting.TimeOfDay == "12:00" then game.Workspace.Part.Transparency = 0 game.Workspace.Part.CanCollide = true elseif game.Lighting.TimeOfDay == "24:00" then game.Workspace.Part.Transparency = 1 game.Workspace.Part.CanCollide = false end
Emess
#40311009Tuesday, January 04, 2011 2:43 AM GMT

If you put those together, code between the if statement and the end would never happen.

    of     1