I recently managed to fix my day/night cycle to loop properly, but now I'd like some help on smoothly changing the OutdoorAmbient and Ambient. I assume this will use lerp which I'm inexperienced in.
local MinutesAfterMidnight = 0
while true do
game.Lighting:SetMinutesAfterMidnight(MinutesAfterMidnight)
MinutesAfterMidnight = MinutesAfterMidnight + 10.5
wait(0.1)
if MinutesAfterMidnight >= 6 * 60 and MinutesAfterMidnight <= 18 * 60 then
game.Lighting.Brightness = 1
game.Lighting.OutdoorAmbient = Color3.new(97/255, 97/255, 97/255)
game.Lighting.Ambient = Color3.new(5/255, 5/255, 5/255)
elseif MinutesAfterMidnight >= 18 * 60 or MinutesAfterMidnight <= 6 * 60 then
game.Lighting.Brightness = 0
game.Lighting.OutdoorAmbient = Color3.new(5/255, 5/255, 5/255)
game.Lighting.Ambient = Color3.new(2/255, 2/255, 2/255)
end
if MinutesAfterMidnight >= 1440 then
MinutesAfterMidnight = 0
end
end

2 comments
You can also use TweenService. http://wiki.roblox.com/index.php?title=API:Class/TweenService/Create
Thank you for the advice, though I need a proper example here. I'm new to the programming game when it comes to Roblox.