I have a DayNightCycle, but I want it to tween, so that the sun doesn’t sutter/lag when moving.
This is my script
local Lighting = game:GetService(“Lighting”)
local TS = game:GetService(“TweenService”)
local Tween = TweenInfo.new(5, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut)
Just resending the script so it’s easier to read for others:
local Lighting = game:GetService(“Lighting”)
local TS = game:GetService(“TweenService”)
local Tween = TweenInfo.new(5, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut)
local Minutes = 660
while true do
Minutes = (Minutes + 1) % 1440
TS:Create(Lighting, Tween, {}):Play()
Lighting:SetMinutesAfterMidnight(Minutes)
wait(5)
end