How can I make a table of the basic brick colors (like in studio)

I pretty much want a table that looks like this:

local allBrickColorNames = {}

to be filled with the names of the basic brick colors, or every single one in studio. I heard that there is 64 default brick colors (dunno if this is true), but it left out a few colors after trying this:

for i = 1,64,1 do
	warn(BrickColor.palette(i))
end

Any idea on how I can get it to loop through all the “default” or studio pallete colors?

2 Likes

The most I could get is from 0 - 127. I’m pretty sure that’s all the brick colors found in the following link.
BrickColors

for i = 0, 127 do
    table.insert(allBrickColorNames, BrickColor.palette(i))
    print(i, " = ", BrickColor.palette(i))
end

Edit: Actually, it’s not all the brick colors. You have to either copy paste the names into the array manually. Or, you could find a free script that already contains the whole array of BrickColors shared by someone else.

3 Likes

I will try this tommorow when I get the chance, thanks for the response!

1 Like