I am trying to give players chat tags to show their rank. Their rank changes as they play the game.
I've found that the easiest way to give a player a chat tag is to use "speaker:SetExtraData". However, when the player gains a new rank and I use "speaker:SetExtraData" to assign them their new rank, then both ranks will show up before their name in the chat.
For example: A player has the rank "Peasant" and types "hi" in the chat. It will look like this: [Peasant][Player1]: Hi
Then the player gains the "Cultist" rank, now they type hi again. It will look like this: [Peasant][Cultist][Player1]: Hi
That makes the question: Is it possible to clean the speaker's "ExtraData", so when I add more ExtraData then the old ExtraData will not persist and stack up several chat tags at once?
Any help or just a point in the right direction would be greatly appreciated.

2 comments
It works now. Thanks for the help!
No problem. Every time you need help, come to me! :D