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

How can I get a Color3 value from a BrickColor value?

Asked by 10 years ago

I am trying to color a TextLable's text with the players team color, is there any way to do this? This is my current script, however it just colors it black:

script.Parent.Text = game.Players.LocalPlayer.Name

while wait() do
    script.Parent.TextColor3 = Color3.new(game.Players.LocalPlayer.TeamColor)
end

This is a local script!

1 answer

Log in to vote
2
Answered by
Merely 2122 Moderation Voter Community Moderator
10 years ago

BrickColor values have a "Color" property, which is the equivalent Color3.

script.Parent.TextColor3 = game.Players.LocalPlayer.TeamColor.Color
Ad

Answer this question