32130, 49215, 20655
That is not a legitimate Color3 value, for those of you who don't know.
I'm writing a short script to make a color changing light, and I thought it was simple, but apparently isn't.
I wrote this very quickly, so I don't mind sharing it.
light = script.Parent;
r = math.random (0,255)
g = math.random (0,255)
b = math.random (0,255)
colors = {r,g,b}
function UpdateColor ()
light.Color = Color3.new (r,g,b)
wait (.1)
end
while wait () do
for i,v in pairs (colors) do
for i = 0,255 do
if v < 255 then
v = v + 5;
UpdateColor ()
else v = 0;
UpdateColor ()
end
end
end
end
As for the number at the top, that's what the Color3 value becomes after I enable the script. I cannot fix it. Thanks in advance! (Color3's could be a new tag)

4 comments
I forgot that about Color3's. Thanks! Unfortunately, now it doesn't change colors.
Because, you only run math.random once for each colour.
light = script.Parent; function UpdateColor () r = math.random (0,255) g = math.random (0,255) b = math.random (0,255) colors = {r,g,b} light.Color = Color3.new (r,g,b) wait (.1) end while wait () do for i,v in pairs (colors) do for i = 0,255 do if v < 255 then v = v + 5; UpdateColor () else v = 0; Upda
edited main post