I have this script for randomly tweening the atmosphere’s haze property. It doesn’t work, and I think it has something to do with a syntax error.
local TweenService = game:GetService("TweenService")
local Pos = Vector3.new(10) -- Change this to the position you want part to move to
local Moving_Info = TweenInfo.new(
10,-- the amount of seconds you want it to take
Enum.EasingStyle.Quad,
Enum.EasingDirection.InOut,
9999, --The amount of time you want it to repeat
true, --Whether you want it to reverse back to the original position when it's done
0 -- how much time should delay between each repitition
)
TweenService:Create(Part, Moving_Info, {Position = Pos}):Play()

