Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

how to insert's a parts color into at table?

So you know when you use a table you use a comma "," to separate value's but when i try to save color's im forced to use something like 105, 64, 40 when i try to use

Table.Insert(colors,Color3.new(105, 64, 40))

It no work it returns a black color ;'/

1 answer

✓ Accepted answer

Color3 takes values from 0-1.

If you want to use RGB instead you can do: Color3.fromRGB(105, 64, 40)

local brownColor =  Color3.fromRGB(105, 64, 40)
table.insert(colors, brownColor)

This discussion is preserved as it was. New answers, comments, and votes are closed.