How do I make it so where if you have a color code in your name it would change the color on your name tag

I have been trying for a while but i could not find out how. I loved how you could put a color code for your name and it would change your name color like for example Murderv3 and makeittomidnight

I’m not on the game so I can’t tell you the exact name of the chip, but it’s Set Player Nametag Color or something to that effect.

I actually have this feature in one of my games, If you want to know the name of my game and grab the invention ill give it to you.

I just wanna know how to make it so i can put it in my game