I was working an a day/night system with a tweened lighting settings transition but for some reason it doesn’t work
Code for tween goal:
local goalNightLight = {}
goalNightLight.Ambient = Color3.new(17, 20, 31)
goalNightLight.Brightness = 0
goalNightLight.ColorShift_Bottom = Color3.new(0, 0, 0)
goalNightLight.ColorShift_Top = Color3.new(20, 30, 49)
goalNightLight.OutdoorAmbient = Color3.new(3, 5, 11)
Code for tween:
local tweenInfo = TweenInfo.new(
10,
Enum.EasingStyle.Quint,
Enum.EasingDirection.Out,
0,
false,
0
)
local tween1 = TweenService:Create(Lighting, tweenInfo, goalNightLight)
--local tween2 = TweenService:Create(Lighting.Bloom, tweenInfo, goalNightBloom)
-- local tween3 = TweenService:Create(Lighting.Atmosphere, tweenInfo, goalNightAtmosphere)
tween1:Play()