Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do i make darker nights and brighter days?

Asked by 4 years ago

I am trying to make darker nights and brighter days. I'm pretty new to scripting. Anyways i hope you can help me.

while true do
if game.Lighting.ClockTime.Value >= 21 then
    game.Lighting.FogColor.Value = 0, 0, 0

elseif game.Lighting.ClockTime.Value <= 06 then
    game.Lighting.FogColor.Value = 192, 192, 192
end
end
0
Can you give an exact details what are you trying to get? S0NIC_Dev 61 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago

Instead of changing the FogColor, just change the ClockTime, so you can have brighter days or darker nights. There are also objects that you can add to lighting like BloomEffects, BlurEffects, SunRays, Color Corrections...

0
I already have a day/night script and I don't wanna mess with the BloomEffects, BlurEffects, SunRays or Color Corrections.. Huggarn101 0 — 4y
0
Then why dont playing around with Brightness property on lighting? EternalScythe 222 — 4y
0
Because it doesn't look good.. Huggarn101 0 — 4y
0
then im sorry but without using ANYTHING of what I said you can't do nothing. EternalScythe 222 — 4y
0
Okay, thank you. Huggarn101 0 — 4y
Ad

Answer this question