So I am trying to make script, that prints text on set time. I want it to print midnight on 00:00:00 of clock time and noon on 12:00:00. But for some reason, unknown for me, its not doing anything. Any idea what mistake am I doing.
function DayNightDoorCycle()
while true do
if game.Lighting:GetMinutesAfterMidnight() == 0 then
print ("midnight")
end
if game.Lighting:GetMinutesAfterMidnight() == 720 then
print ("noon")
end
end
end
