How to Make a Day/Night Cycle in Roblox

Beginner 5 min Basics

Smooth time-of-day rotation driven on the server, with clients reading ClockTime — no per-frame replication spam.

Skip the typing

Generate the whole system, every file wired up. Free during beta.

Build it for me

How it works, step by step

  1. 1

    Run a single Heartbeat loop on the server advancing ClockTime by delta-scaled minutes.

  2. 2

    Expose the current time as a Lighting attribute so clients can read it cheaply.

  3. 3

    Optionally tween Lighting properties (Ambient, FogColor) across keyframed times of day.

  4. 4

    Let admins override time via a validated remote command.

Concepts you'll use

  • Lighting.ClockTime
  • Heartbeat delta stepping
  • Attributes for replication

Mistakes that cost you players

  • Firing a remote every frame to sync time wastes bandwidth; attributes replicate automatically.
  • Advancing by fixed increments ignores lag spikes — scale by deltaTime.

Every script above — written, placed & wired in ~30 seconds

Build it free 🔥

no card · full access in beta

Keep building

All topics