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. :)
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