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

Why is this script doing absolutely nothing?

Asked by 8 years ago

Please make your question title relevant to your question content. It should be a one-sentence summary in question form.
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?

0
Where is ColorCorrection located? M39a9am3R 3210 — 8y
0
ColorCorrection is located in Lighting, which the script is also in. Extraordinarius -5 — 8y
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. M39a9am3R 3210 — 8y
0
Thanks. Extraordinarius -5 — 8y

Answer this question