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

How do I convert BG values into Color3 values?

How would I convert BrickColor values into color3 values. Whenever I do this:

teamlabel.TextStrokeColor3 = chil[c].TeamColor

It always shows up as an error. Then I found out that the text stroke color was a color3 value and it was different to a brickcolor value. How would I convert the brickcolor to color3?

1 comment

0

btw i have a varible here local teamlabel = slot["Team Label"]

1 answer

There is actually a really good wiki article on this already.

Here's the snippet that they use.

You can easily convert your BrickColor into Color3 format by simply doing something like this!

local brickcolor = BrickColor.new("Really red") --Create our new BrickColor
local color = brickcolor.Color --BrickColors have a Color property that returns their Color3

Cool! Let's apply that to your code.

teamlabel.TextStrokeColor3 = chil[c].TeamColor.Color

That should be all.

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