
2.1k Views
3.1k Executions
Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
free
local Lighting = game:GetService("Lighting")
local ColorCorrection = Instance.new("ColorCorrectionEffect")
ColorCorrection.Parent = Lighting
local function zigzag(X)
return math.acos(math.cos(X * math.pi)) / math.pi
end
local Counter = 0
Lighting.TimeOfDay = "12:00"
while task.wait(0.1) do
local color = Color3.fromHSV(zigzag(Counter), 1, 1)
ColorCorrection.TintColor = color
Lighting.Ambient = color
Counter += 0.01
end










i made it smoother