Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do i make darker nights and brighter days?

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

1 comment

0

Can you give an exact details what are you trying to get?

1 answer

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...

5 comments

0

I already have a day/night script and I don't wanna mess with the BloomEffects, BlurEffects, SunRays or Color Corrections..

0

Then why dont playing around with Brightness property on lighting?

0

Because it doesn't look good..

0

then im sorry but without using ANYTHING of what I said you can't do nothing.

0

Okay, thank you.

This discussion is preserved as it was. New answers, comments, and votes are closed.