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.
while true do if game.Lighting:GetMinutesAfterMidnight() == 20 * 60 then -- Runs when TimeOfDay gets to 8 at night -- Add "color correction" code elseif game.Lighting:GetMinutesAfterMidnight() == 6 * 60 then -- Runs when TimeOfDay gets to 6 in the morning -- Add "color correction" code end wait(0.1) end
If this works please give a upvote and accept the answer!
Reference material: ROBLOX Wiki Article