wait(2)
script.Parent.ColorCorrection.Brightness = -0.025
script.Parent.ColorCorrection.Contrast = 0.100
wait(0.1)
script.Parent.ColorCorrection.Brightness = -0.050
script.Parent.ColorCorrection.Contrast = 0.200
wait(0.1)
script.Parent.ColorCorrection.Brightness = -0.075
script.Parent.ColorCorrection.Contrast = 0.300
wait(0.1)
script.Parent.ColorCorrection.Brightness = -0.100
script.Parent.ColorCorrection.Contrast = 0.400
wait(0.1)
script.Parent.ColorCorrection.Brightness = -0.125
script.Parent.ColorCorrection.Contrast = 0.500
wait(0.1)
script.Parent.ColorCorrection.Brightness = -0.150
script.Parent.ColorCorrection.Contrast = 0.600
wait(0.1)
script.Parent.ColorCorrection.Brightness = -0.175
script.Parent.ColorCorrection.Contrast = 0.700
wait(0.1)
script.Parent.ColorCorrection.Brightness = -0.200
script.Parent.ColorCorrection.Contrast = 0.800
wait(0.1)
script.Parent.ColorCorrection.Brightness = -0.225
script.Parent.ColorCorrection.Contrast = 0.900
wait(0.1)
script.Parent.ColorCorrection.Brightness = -0.250
script.Parent.ColorCorrection.Contrast = 1.000

So I'm trying to make a script that smoothly changes the brightness and contrast values of ColorCorrection, which is inside script.Parent. Any ideas why this isn't doing anything at all?

4 comments

0

Where is ColorCorrection located?

0

ColorCorrection is located in Lighting, which the script is also in.

0

Scripts don't work in Lighting. You need to find a different way of getting to the ColorCorrection object. Might I suggest moving the script to ServerScriptService, and changing all the script.Parents to game.Lighting.

0

Thanks.