I’m trying tween Atmosphere but I’m not sure how here is the code I wrote
local lighting = game:GetService("Lighting")
local ts = game:GetService("TweenService")
local Atmos = game.Lighting.Atmosphere
local transition = 30
local ti = TweenInfo.new(transition,Enum.EasingStyle.Quad,Enum.EasingDirection.InOut)
local day = 60
local night = 25
while true do
wait()
local t2 = ts:Create(lighting,ti,{ClockTime = 12})
local FeelMorning = ts:Create(game.Lighting.Atmosphere.Color = Color3.fromRGB(94, 156, 255)),ti)
t2:Play()
local t1 = ts:Create(lighting,ti,{ClockTime = 0})
t1:Play()
end
local lighting = game:GetService("Lighting")
local ts = game:GetService("TweenService")
local Atmos = game.Lighting.Atmosphere
local transition = 30
local ti = TweenInfo.new(transition,Enum.EasingStyle.Quad,Enum.EasingDirection.InOut)
local day = 60
local night = 25
while true do
wait()
local t2 = ts:Create(lighting,ti,{ClockTime = 12})
local FeelMorning = ts:Create(lighting,ti,{Atmosphere = 188, 121, 142})
t2:Play()
FeelMorning:Play()
wait(5)
local t1 = ts:Create(lighting,ti,{ClockTime = 0})
local FellNight = ts:Create(lighting,ti,{Atmosphere = 94, 156, 255})
t1:Play()
FellNight:Play()
end
``` also tired this
The problem here is that you aren’t formatting the Properties dictionary properly for TweenService’s
Create function.
You can view the proper formatting here, along with a code example.
In your code, you’re trying to tween a property ‘Atmosphere’ which doesn’t exist.
You must tween a property of it, which I assume you’re wanting either Color or Delay.
So in this case, you want your property table to look something more like this:
{Color = Color3.fromRGB(188, 121, 142)}
I’m not sure what your preferred method of learning is, but if none of that helped, try a YouTube tutorial. There’s quite a few of them, but here’s one you might find useful: