Why do i keep getting this error in my lighting script?

So, as you might know, bc of my previous posts I’m making a horror game. And I keep getting this error in my lighting script but why tho? The first two lines of code won’t work and I keep getting this error. now why would I need a lighting script? because when I’m building there’s ALOT of dark lighting, which is obvious its a horror game. the point is why tho? Here The Code:

--Lighting Settings--
while true do
	wait(.1)
	game.Lighting.Blur = true
	game.Lighting.ColorCorrection = true
	game.Lighting.Ambient = "43, 43, 43"
	game.Lighting.Brightness = "0.583"
	game.Lighting.ColorShift_Bottom = "42, 42, 42"
	game.Lighting.ColorShift_Top = "0, 0, 0"
	game.Lighting.EnvironmentDiffuseScale = "0.563"
	game.Lighting.EnvironmentSpecularScale = "1"
	game.Lighting.GlobalShadows = true
	game.Lighting.OutdoorAmbient = "0, 0, 0"
	game.Lighting.ShadowSoftness = "0.01"
	game.Lighting.Technology = "Future"
	game.Lighting.Archivable = true
	game.Lighting.ClockTime = 0
	game.Lighting.TimeOfDay = "00:00:00"
	game.Lighting.ExposureCompensation = "0"
	game.Lighting.FogColor = "0, 0, 0"
	game.Lighting.FogEnd = 95
	game.Lighting.FogStart = 5
end

Heres The Error: (exact same happens but with Color Correction instead of blur*)
image

1 Like

NOT game.Lighting.Blur = true ITS game.Lighting.Blur.Enabled = true

Also why did you use wait()? Avoiding wait() and why - Resources / Community Tutorials - DevForum | Roblox

Thanks Alot! But I Also Keep Getting This Error:


Its Color3.fromRGB(43, 43, 43)

1 Like