Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 4 years ago

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

Log in to vote
6
Answered by
royaltoe 5144 Moderation Voter Community Moderator
4 years ago
Edited 4 years ago

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)
Ad

Answer this question