Alright so I have this script and i want the colourOn variable to be connected to a Color3Value so I can change the color through the Color3Value. Can someone help me? I know it needs to be divided by 255 on each value, But how would I do that?
colourOn = Color3.new(0, 0, 0) --Where the Color3Value should go
colourOff = Color3.new(0, 0, 0)
while true do
c = script.Parent.LightUp:GetChildren()
for i = 1, #c do
if math.random() > 0.5 then
c[i].Color = colourOn
else
c[i].Color = colourOff
end
end
wait(0.2)
end
Sorry if it's a little confusing, It's hard to explain.

4 comments
I realize, but I need to divide the Color3Value's rgb by 255 on each value
Can you elaborate further? I divided the RGB values by 255 in the code I provided.
Alright so I have a boolian called Color3Value, and the three R G B values inside need to be divided by 255. (This is so I can control the color via other script)
Then just simply grab the Color3 value then divide it. It's hard to understand your situation without the code you're referencing to.