Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Is it possible to do a day and night script with TimeOfDay instead of minutesaftermidnight?

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?

1 answer

✓ Accepted answer

Yes. Just set the temperature it'll be after that hour, example:

if game.Lighting.TimeOfDay == "12:00:00" then
	temp.Value = 40
end

1 comment

0

Thank you

This discussion is preserved as it was. New answers, comments, and votes are closed.