How would I convert a Color3 Value into a Brick Color value?

Hello, my car system uses Color3 to paint the cars, and I need to have friendly names like Earth green like Brick Color Does.

I have only found articles online about how to Convert Brick Color to Color3 but not Color3 to Brick Color.

Is this even possible? And if it is, how do I do it?

Thanks in advance.

1 Like

It should do so automatically. Maybe just make it read the names of the brick color.

What do you mean by automatically.

If I print out the value of a Color3 value it just prints out the RGB channels, not the brickcolor.

To clarify I want to turn this into a Brick Color.
image

Edit: Clarification

Why don’t you use brickcolor in the first place? Or is there a certain limitation forcing you to use color3

1 Like

I know I could have used BrickColor, but I am curious to know if it possible to turn it into a brickcolor.

It would take me ages to change it.

Ok. So I’m no scripter, but I am familiar with custom colors. If you set a color to a value, it will gave it a name that is the closest brick color to the brick color value. Have it set the brick color value then read the brick color.

Simply you can do

BrickColor.new(Color3.new(r, g, b))

You can find it at BrickColor documentation.

10 Likes
local colorValue = Color3.new(insert here)

local bickValue = BrickColor.new(colorValue)

This should work, however when converting the colour may change slightly, as color3 can store and display many more unique colors than brick color.

Also I am writing this on my phone, so don’t expect the code to work perfectly first time

You can have it set the color3 tbut read out the brickcolor