And I am trying to make the game To the lighting Time of "20:00:00" But without using the
while true do wait() if game.Lighting.TimeOfDay == ("14:00:00") then game.Lighting.TimeOfDay = ("20:00:00") end end
``
method
while true do wait() if game.Lighting.TimeOfDay == ("20:00:00") then if not game.Lighting.TimeOfDay == ("20:00:00") then wait(23.0) end end end
This is my code ( The Above ) I am trying to Learn coding By myself but I could use some help every so often.
No + then if not means if it doesnt meet the condition so you could just use..
if game.Lighting.TimeOfDay ~= "20:00:00" then --blah end
Plus the second script you showed wouldn't really work because it would need the time to be 20:00:00 to execute the if not then
statement which means if it needs to NOT meet the condition but yet it needs to meet it so it can even execute it as shown in the first if statement.