Why is this script making the lighting glow really brightly?

So I changed the lighting with a script.
And now its really bright
I used this same light settings in a different game and it is not glowing. Is it something with the script or is one of the values making it glow extreme

		-- set lighting values first
		lighting.Ambient = Color3.new(200, 160, 225)
		lighting.Brightness = 2
		lighting.ColorShift_Top = Color3.new(215, 190, 135)
		lighting.OutdoorAmbient = Color3.new(125, 100, 150)
		lighting.EnvironmentDiffuseScale = 0.3
		lighting.EnvironmentSpecularScale = 0.25
		
		lighting.GeographicLatitude = 40
		lighting.ClockTime = 0
		
		-- set the atmos
		atmos.Density = 0.483
		atmos.Offset = 0.207
		
		-- bloom
		bloom.Enabled = true
		bloom.Intensity = 3
		bloom.Size = 24
		
		-- depth
		depth.Enabled = true
		depth.FarIntensity = 0.243
		depth.FocusDistance = 16.22
		depth.InFocusRadius = 9.46
		depth.NearIntensity = 1
		
		print('Set the lighting')

Images of what the values are:
Sunrays
Depth
Bloom
atmos
light

Just note I went through all of the settings and changed it. I dont know what is wrong

This is what it looks like

what is the size different of the parts?

it could be the bloom intensity or size?

No. if I remove changing bloom all together it still glows

Try using Color3.fromRGB(r, g, b) instead of Color3.new(r, g, b). I believe Color3.new uses values from 0-1 and Color3.fromRGB uses 0-255, so you’re setting all those color values to white.

This worked perfectly! Thank you very much

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.