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

Not sure how to get a BrickColor value from BackgroundColor3; advice?

I'm developing a paintool with 64 TextButtons, each button has an individual roblox BrickColor set as it's BackgroundColor3. Now in my script I need to get a BrickColor value from the the TextButton's BackgroundColor3.
I've had previous answers recieved on the forums that failed to fix my issue. These suggestions include:

local bc = BrickColor.new(TextButton.BackgroundColor3.Color)

local bc = TextButton.BackgroundColor3.Color

Also my gratitude in advance for any help. :)

2 answers

BrickColor has a number of constructors that take different parameters. One of these constructors takes a Color3 object.

local bc = BrickColor.new(TextButton.BackgroundColor3)

More information on the BrickColor wiki article

BrickColor for GUI's should be Color3.new

Hope i helped.

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