Username Tag as the same color as your team

I have a rank tag in my game, and I want the username to corrispond with the team color so that they match, and for some reason I just cannot find a way of doing so

Config:
image

Handler:

I have tried:
image

That is all, I would appreciate it if you could help, I would be happy to ellaborate if I didn’t explain this very well.

You should check for the Team, not the TeamColor:

if game.Players.LocalPlayer.Team == game.Teams.SOME_TEAM then ... end

However, if you just want to grab the color for the team, you can just grab the Color3 from the BrickColor:

Tag.UserName.TextColor3 = Player.TeamColor.Color
3 Likes

image

In which script was this code in?

I tried it in both, config and handler script.


It works, thank you!

1 Like