EpicGamerSander1345

chat tag

Feb 19th, 2023
20
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. local ServerScriptService = game:GetService("ServerScriptService")
  2. local ChatService = require(ServerScriptService:WaitForChild("ChatServiceRunner"):WaitForChild("ChatService"))
  3. local Players = game:GetService("Players")
  4.  
  5. local Owner = {'YOUR NAME'} --Change YOUR NAME to your username
  6.  
  7. ChatService.SpeakerAdded:Connect(function(PlrName)
  8. local Speaker = ChatService:GetSpeaker(PlrName)
  9. for _, v in pairs(Owner) do
  10. if Players[PlrName].Name == v then
  11. Speaker:SetExtraData('Tags', {{TagText = "Change this to whatever you want the chat tag to say. For example, Owner, Moderator, Builder.", TagColor = Color3.fromRGB(255,0,0)}}) --Change the numbers to what you want the color to be, you get the color code from a part when you choose what color it should be.
  12. end
  13. end
  14. end)
Add Comment
Please, Sign In to add comment