Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Scripted By: EG3SC11
- --Credits to: EG3SC11
- local util = require(2246630385)
- local speed = 2.5
- local I = game.Lighting
- --Colors
- local black = util.Color(0, 0, 0)
- local lightBlack = util.Color(0, 0, 0)
- local red = util.Color(71, 51, 51)
- local orange = util.Color(71, 71, 51)
- local pink = util.Color(91, 71, 71)
- local grey = util.Color(192, 192, 192)
- --Fog Levels
- local highStart = 0
- local highEnd = 300
- local mediumStart = 0
- local mediumEnd = 600
- local lowStart = 0
- local lowEnd = 1200
- I.FogColor = grey
- I.FogStart = mediumStart
- I.FogEnd = mediumEnd
- I.TimeOfDay = "06:00:00"
- function set(val)
- I:SetMinutesAfterMidnight(val)
- end
- function get(val)
- return I:GetMinutesAfterMidnight()
- end
- while true do
- wait(1/speed)
- set(get() + 1)
- local t = get()
- if t == 0 or t == 1440 or t == 1200 or t == 240 then
- I.FogColor = black
- I.FogStart = highStart
- I.FogEnd = highEnd
- elseif t == 330 or t == 1110 then
- I.FogColor = lightBlack
- I.FogStar = mediumStart
- I.FogEnd= mediumEnd
- elseif t == 345 or t == 1095 then
- I.FogColor = red
- I.FogStart = lowStart
- I.FogEnd = lowEnd
- elseif t == 360 or t == 1080 then
- I.FogColor = orange
- I.FogStart = lowStart
- I.FogEnd = lowEnd
- elseif t == 375 or t == 1065 then
- I.FogColor = pink
- I.FogStart = lowStart
- I.FogEnd = lowEnd
- elseif t == 390 or t == 720 or t == 1050 then
- I.FogColor = grey
- I.FogStart = mediumStart
- I.FogEnd = mediumEnd
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement