I have a folder of Color3Value objects, and the value of each one is a different color. For example, the value of the object named “Blue” is [51, 88, 130].
I have a script that randomly chooses one of these objects and sets a brick to the value of the randomly chosen object. Except when it runs, the brick is always turned black. Now as a test I printed the value, and here is what the same blue value becomes: 0.2, 0345098, 0.509804. Any ideas why it’s goofing up the values?
Here’s the code just in case it matters.
local table = colorPack:GetChildren()
local random = table[math.random((#table))]
print(random)
print(random.Value)
That worked great, thank you very much for taking the time to do that. If you don’t mind (you’ve already done enough), could you explain to me why mine didn’t work but yours did?