Attempting to start script on certain time

I have a time script running on Central Time and I want a script to print something when it reaches that time.

It says this in the output and it’s not print done (look below).

while true do
	if game.Lighting.TimeOfDay == '1:13:00' then
		print("done")
	end
end

How can I fix this?

1 Like
while true do
	if game.Lighting.TimeOfDay == '01:13:00' then
		print("done")
	end
    task.wait(1)
end

Thanks so much. It now works! Your a lifesaver!

1 Like