Well. Strait to the point I'm making a realistic game, and I want a script saying "Ok its 8:30 suns down, make the color correction dark blue" How would i do that? and make it return to day in my game the color corection color for day is a tan and at night its dark blue. How would i make a script to do that?
I don't exactly understand your wording of "color correction". I'm guessing its the Ambient property in Lighting. I made this script that constantly checks the TimeOfDay in Lighting. It runs two different if statements at 20:00:00 (8pm) and 6:00:00 (6am). You can add your color correction code inside of the if statements.
01 | while true do |
02 | if game.Lighting:GetMinutesAfterMidnight() = = 20 * 60 then |
03 | -- Runs when TimeOfDay gets to 8 at night |
04 | -- Add "color correction" code |
05 | elseif game.Lighting:GetMinutesAfterMidnight() = = 6 * 60 then |
06 | -- Runs when TimeOfDay gets to 6 in the morning |
07 | -- Add "color correction" code |
08 | end |
09 | wait( 0.1 ) |
10 | end |
If this works please give a upvote and accept the answer!
Reference material: ROBLOX Wiki Article