
5.0k Views
427 Executions
Day Night Cycle
Universal Script 📌
floppa_scripterPublished 10
1 year ago
Please login to perform these actions:Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
Changes Day to Night (NOT FE)
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









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