I have a script that sets the time to 19, and it works, but then this doesn't go through?
if game.Lighting.TimeOfDay == 19 then print("19") end
TimeOfDay is written in 24 hour time format so you would have to do:
if game.Lighting.TimeOfDay == 19..":"..00..":"..00 then
Alternatively you can just use ClockTime which converts 24 hour time to hours.
if game.Lighting.ClockTime = 19 then