Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I convert BG values into Color3 values?

Asked by 6 years ago

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?

0
btw i have a varible here local teamlabel = slot["Team Label"] Soldierme19 0 — 6y

1 answer

Log in to vote
2
Answered by 6 years ago

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.

Ad

Answer this question