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

how to convert teamcolor to a color3 value?

i want to make the textcolor3 of a textlabel the same color as the players team color.

	game.ServerStorage.overhead:Clone().Parent = head
	head.overhead.title.Text = team.Name
	color = team.TeamColor
	head.overhead.title.TextColor3 = Color3.new(color)

this does not return an error, however it just sets the color of the textlabel to black. (0,0,0)

3 comments

0

Wouldent you just set it to color, not color3.new(color)?

0

Because as ceolor3.new(color) youve just basically said color3.new(color3.new(X,Y,Z)) right?

0

it returns the following error - ServerScriptService.insteroverhead:12: bad argument #3 to 'TextColor3' (Color3 expected, got BrickColor)

1 answer

✓ Accepted answer

Since team color is a brick color value, use this to convert brick color to color3:

--brickcolor.Color--

game.ServerStorage.overhead:Clone().Parent = head
head.overhead.title.Text = team.Name
color = team.TeamColor -- if color is a brick color

head.overhead.title.TextColor3 = color.Color

4 comments

0

Can you get teamcolor.color? I thought that was just teamcolor

0

yea

0

Hmmmm.

0

Oh yeah :D I forgot for a second there sry

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