screen goes black like nighttime, and then when set to daytime, goes solid white, not normal like it should.
while true do
wait(300)
game.Lighting.Brightness = 0
game.Lighting.TimeOfDay = "2:00:00"
game.Lighting.Ambient = Color3.new(0,0,0)
for _,v in pairs(workspace:GetChildren())do
if v.Name == "Lantern" then
v.PointLight.Enabled = true
end
end
wait(300)
game.Lighting.Brightness = 1
game.Lighting.TimeOfDay = "12:00:00"
game.Lighting.Ambient = Color3.new(128,128,128)
for _,v in pairs(workspace:GetChildren())do
if v.Name == "Lantern" then
v.PointLight.Enabled = false
end
end
end

1 comment
With the Color3.new(128,128,128) You need to divide it by 255. Anything like that, divide it by 255.