---
title: "Day Night Cycle | Universal Roblox Script - ScriptBlox"
description: "Day Night Cycle for any Roblox game: Changes Day to Night (NOT FE)"
canonical_url: "https://scriptblox.com/script/Universal-Script-Day-Night-Cycle-40656"
meta:
  "og:description": "Day Night Cycle for any Roblox game: Changes Day to Night (NOT FE)"
  "og:image": "https://scriptblox.com/images/script/0-1747993280129.jpg"
  "og:title": "Day Night Cycle | Universal Roblox Script - ScriptBlox"
  "twitter:description": "Day Night Cycle for any Roblox game: Changes Day to Night (NOT FE)"
  "twitter:image": "https://scriptblox.com/images/script/0-1747993280129.jpg"
  "twitter:title": "Day Night Cycle | Universal Roblox Script - ScriptBlox"
---

> Index of every page on this site: [llms.txt](https://scriptblox.com/llms.txt)

![Universal Script 📌](https://scriptblox.com/images/script/0-1747993280129.jpg)

# **Day Night Cycle**

[**Universal Script 📌**](https://scriptblox.com/game/universal)**![floppa\_scripter](https://scriptblox.com/images/photo/6825d51c91ae140e8f4472ff-1747310177794.png) [floppa\_scripter](https://scriptblox.com/u/floppa_scripter)Published 10**

2 years ago

[**Get an executor**](https://scriptblox.com/executors?kind=executor)

Please login to perform these actions:

## **Does it work? **

**No reports yet **

No reports yet. Tried it? Be the first to say.

Also noticed:

## Description

Changes Day to Night (NOT FE)

[View Raw](https://scriptblox.com/raw/Universal-Script-Day-Night-Cycle-40656)

```
local Lighting = game:GetService("Lighting")
local RunService = game:GetService("RunService")

local DAY_LENGTH = 120 
local START_TIME = 12 
local CURRENT_TIME = START_TIME
local TIME_SPEED = 24 / DAY_LENGTH 

Lighting.ClockTime = CURRENT_TIME
Lighting.GeographicLatitude = 30 
Lighting.Brightness = 1.5
Lighting.FogColor = Color3.fromRGB(180, 190, 210)
Lighting.OutdoorAmbient = Color3.fromRGB(128, 128, 128)
Lighting.Ambient = Color3.fromRGB(60, 60, 60)
Lighting.GlobalShadows = true
Lighting.ExposureCompensation = 0.25

while true do

	CURRENT_TIME = CURRENT_TIME + TIME_SPEED * RunService.Heartbeat:Wait()

	if CURRENT_TIME >= 24 then
		CURRENT_TIME = 0
	end

	Lighting.ClockTime = CURRENT_TIME

	if CURRENT_TIME >= 6 and CURRENT_TIME < 18 then
		Lighting.Brightness = 1.5
		Lighting.FogColor = Color3.fromRGB(180, 190, 210)
		Lighting.OutdoorAmbient = Color3.fromRGB(128, 128, 128)
		Lighting.Ambient = Color3.fromRGB(60, 60, 60)
		Lighting.ExposureCompensation = 0.25
	else

		Lighting.Brightness = 0.1
		Lighting.FogColor = Color3.fromRGB(10, 10, 20)
		Lighting.OutdoorAmbient = Color3.fromRGB(30, 30, 50)
		Lighting.Ambient = Color3.fromRGB(20, 20, 40)
		Lighting.ExposureCompensation = -0.5


```

## **Comments **

**1**

Log in to join the conversation. [**Login **](https://scriptblox.com/login?redirect=/script/Universal-Script-Day-Night-Cycle-40656)

![French's profile picture](https://scriptblox.com/images/photo/67915ab4bef4a15ae7b1c4e7-1757794394789.png)

[**French**](https://scriptblox.com/u/French)2 years ago

wow a \*ing script from jjsploit nice one but this is not paying the bills

1

```json
{"@context":"https://schema.org","@type":"SoftwareSourceCode","@id":"https://scriptblox.com/script/Universal-Script-Day-Night-Cycle-40656#script","url":"https://scriptblox.com/script/Universal-Script-Day-Night-Cycle-40656","name":"Day Night Cycle","programmingLanguage":"Lua","runtimePlatform":"Roblox","author":{"@type":"Person","name":"floppa_scripter","url":"https://scriptblox.com/u/floppa_scripter"},"datePublished":"2025-05-23T09:41:20.182Z","image":"https://scriptblox.com/images/script/0-1747993280129.jpg","isAccessibleForFree":true}
```

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://scriptblox.com/#website","@type":"WebSite","description":"Search free Roblox scripts uploaded by the community, with live status for every major executor. Browse by game, copy the loadstring and run it in your executor.","inLanguage":"en","name":"ScriptBlox","url":"https://scriptblox.com/"},{"@id":"https://scriptblox.com/script/Universal-Script-Day-Night-Cycle-40656#webpage","@type":"WebPage","description":"Day Night Cycle for any Roblox game: Changes Day to Night (NOT FE)","name":"Day Night Cycle | Universal Roblox Script - ScriptBlox","url":"https://scriptblox.com/script/Universal-Script-Day-Night-Cycle-40656","breadcrumb":{"@id":"https://scriptblox.com/script/Universal-Script-Day-Night-Cycle-40656#breadcrumb"},"isPartOf":{"@id":"https://scriptblox.com/#website"},"mainEntity":{"@id":"https://scriptblox.com/script/Universal-Script-Day-Night-Cycle-40656#script"},"potentialAction":[{"@type":"ReadAction","target":["https://scriptblox.com/script/Universal-Script-Day-Night-Cycle-40656"]}]},{"@id":"https://scriptblox.com/script/Universal-Script-Day-Night-Cycle-40656#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://scriptblox.com","position":1},{"@type":"ListItem","name":"Universal","item":"https://scriptblox.com/game/universal","position":2},{"@type":"ListItem","name":"Day Night Cycle","position":3}]}]}
```

## Sitemap

See the full [sitemap](https://scriptblox.com/sitemap.md) for all pages.
