How do I get the number values of a brickcolor?

Each color has a single number value relating to it. How do I find the number value of a color? Such as my player’s teamcolor is Bright blue and I want it to return the number value for Bright blue.

On the wiki it says Bright blue is 23, but I want to be able to be like player.Team.TeamColor.Number or something like that if that’s possible.

BrickColors have a property called Number which you can specify when creating a new BrickColor.

local brickColor = BrickColor.new('Artichoke') 

print(brickColor.Number) --> 318

print(BrickColor.new(brickColor.Number)) --> Artichoke

Oh so BrickColor.Number does work. I wasn’t thinking and I did Color.Number and assumed .Number wasn’t a thing. Thanks!

1 Like