UI & Player Experience3 min read

Smooth Atmospheric Transitions With TweenServiceAnimate sunset, fog, and brightness smoothly for the whole server.

Snapping Lighting.ClockTime from noon to midnight looks abrupt. Using TweenService on the server lets you roll the sun smoothly across the sky over 8 seconds while every player watches.

Smooth 8-second sunset transition

TweenService works natively on the server for Lighting properties and replicates smooth interpolation straight to clients.

smooth-sunset.lua
local Lighting = game:GetService("Lighting")
local TweenService = game:GetService("TweenService")

local info = TweenInfo.new(8, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut)
TweenService:Create(Lighting, info, { ClockTime = 18.5, Brightness = 1.4 }):Play()

Common questions

Does server-side TweenService cause lag?

Tweening a single Lighting object is tiny and runs smoothly even on busy high-player servers.

All scripts

Try Nova free right in your browser.

Create a free account, link your Roblox profile in about a minute, and run verified or custom Luau scripts with zero downloads. Upgrade to Basic, Enhanced, or Ultra anytime with one-time card checkout.