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

How do I change a text color with a team color?

Here is the script I tried to make:

if game.Players:GetPlayerFromCharacter(Character):GetRankInGroup(6756481) >=1 then 
	NameTagClone.Frame.GroupRank.TextColor3 = Color3.new(game.Players[CharacterName].TeamColor.Color)
end

1 comment

0

Don't worry about the variables ^ I just took a part of my script.

1 answer

Hello, SecretPax!

player.TeamColor is already a Color3 value, so you don't need to use player.TeamColor.Color:

if game.Players:GetPlayerFromCharacter(Character):GetRankInGroup(6756481) >=1 then 
    NameTagClone.Frame.GroupRank.TextColor3 = Color3.new(game.Players[CharacterName].TeamColor)
end

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