i have barely touched scripting on roblox, and i am making a game (terrible move but my friend mostly wants it). i wanted a script sorta like general ragdoll chaos one that can reverse colors and things. it didnt work lol. anyone got an idea what i did wrong, cuz i cant figure it out. heres the script
local l = 1
while true do
if l == 1 then
script.Parent.Saturation = 0
script.Parent.Contrast = 0
end
if l == 2 then
script.Parent.Saturation = -2
script.Parent.Contrast = 0
end
if l == 3 then
script.Parent.Saturation = 2
script.Parent.Contrast = 1
end
if l == 4 then
script.Parent.Saturation = -1
script.Parent.Contrast = 0
end
if l == 5 then
script.Parent.Contrast = -99
script.Parent.Saturation = 0
print("P A I N")
end
wait(5)
l = math.random(1,5)
end
i have the script in colorcorrection and colorcorrection is in lighting.

1 comment
Are you trying to change the color?