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

Converting BrickColor to Color3 using tostring?

Asked by 7 years ago

Name.TextColor3=Color3.new(tostring(newPlayer.TeamColor).Color)

This line is supposed to change the color of a button's text (A Color3 value) to the TeamColor (a BrickColor value) of the Local Player (newPlayer). The text remains black. The text in theory is supposed to change to gold. Thank you for your help!

2 answers

Log in to vote
1
Answered by 7 years ago
Name.TextColor3 = newPlayer.TeamColor.Color

TeamColor is a BrickColor (http://wiki.roblox.com/index.php?title=BrickColor) and Color is a Color3 (http://wiki.roblox.com/index.php?title=API:Color3)

Ad
Log in to vote
0
Answered by 7 years ago

Name.TextColor3 = newPlayer.TeamColor.Color

Answer this question