Universal Script πŸ“Œ
5.2k Views
597 Executions

Day Night Cycle

Universal Script πŸ“Œ
floppa_scripter
floppa_scripterPublished 10
2 years ago
Get an 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
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
French's profile picture
French2 years ago

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

1

More universal scripts

See all
Script hub
145
987
Bumped 29 minutes ago

Script hub

Lunyx Hub

Script hub
120.8k
221.2k
Bumped 48 minutes ago
Key System
Script hub
10.5k
200.6k
Bumped 1 hour ago

Script hub

KeylessVerified script badgeIRIDIUM HUB | #1

Script hub
33.3k
299.2k
Bumped 4 hours ago
Script hub
23.7k
5.3k
Bumped 4 hours ago
Key System
Paid
High QualityΒ Offering
Universal Script πŸ“Œ
306
978
Bumped 5 hours ago