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

How do I properly assign a Color3 value that I am getting from Team.TeamColor?

Asked by 6 years ago

I have tried making the background of a TextLabel go the TeamColor of a Team.

TextLabel.BackgroundColor3 = Color3.new(Team.TeamColor.Color)

Just changes the color to [0, 0, 0] when the Brickcolor is Medium red, or anything else.

1 answer

Log in to vote
2
Answered by
Pojoto 329 Moderation Voter
6 years ago

You don't need to create a new Color3.new() value for this. All you have to do is just:

TextLabel.BackgroundColor3 = Team.TeamColor.Color

No need to add a Color3.new() since Team.TeamColor.Color is already a Color3 value.

0
Wow. Thanks, works. Thanks so much. I couldn't find anything else on it anywhere. keegaroo65 11 — 6y
Ad

Answer this question