How do you make a custom chat tag?
I would be happy if someone were to explain or show me with a script to me how "Speakers ", " ChatService" and more really works. I've tried many scripting with them but all of them seemed to failed. It would be really nice somebody could teach me to use them properly
in order to make custom chat tags. Here is a script that I've tried, it's located in "ServerScriptService" and is a normal script. But refuses to work...
01 | local CHatS = require(script.Parent:WaitForChild( "ChatServiceRunner" ):WaitForChild( "ChatService" )) |
03 | local GroupID, Supporter, Helper, SF, GroupMod, Dev, Owner = 4484070 , 1 , 254 , 252 , 252 , 253 , 255 |
04 | local pLAY = game:GetService( "Players" ) |
07 | pLAY.PlayerAdded:Connect( function (Player) |
10 | if Player:IsInGroup(GroupID) and Player:GetRankInGroup(GroupID) = = Dev then |
12 | local Speak = CHatS:GetSpeaker(Player.Name) |
13 | Speak:SetExtraData( 'Tags' , { { TagText = 'Developer' , TagColor = Color 3. new( 1 , 0 , 1 ) } } ) |