local TweenService = game:GetService("TweenService")
local Lighting = game:GetService("Lighting")
local tweenInfo = TweenInfo.new(3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out)
local randomFog = Random.new(1)
while true do
local FogNum = randomFog:NextInteger(50, 600)
local tween = TweenService:Create(Lighting, tweenInfo, {FogEnd = FogNum})
tween:Play()
wait(10)
end
I attempted tweening the “FogEnd” value to a random value every 10 seconds in a while loop, the script outputs no error but in-game it gives no absolute effect. Does anyone know how to fix it?