I'm making a survival game and temperature is going be based off of the TimeOfDay so could I use TimeOfDay to make a day and night script?
Yes. Just set the temperature it'll be after that hour, example:
if game.Lighting.TimeOfDay == "12:00:00" then temp.Value = 40 end