Advertisement
HowToRoblox

ChatTagsScript

Jan 20th, 2020
7,341
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.81 KB | None | 1 0
  1. local plrs = game.Players
  2.  
  3. local sss = game.ServerScriptService
  4.  
  5. local groupId = 2929563
  6.  
  7. local chatService = require(sss:WaitForChild('ChatServiceRunner'):WaitForChild('ChatService'))
  8.  
  9.  
  10. chatService.SpeakerAdded:Connect(function(plr)
  11.    
  12.     local speaker = chatService:GetSpeaker(plr)
  13.    
  14.    
  15.     if plrs[plr].UserId == 84182809 then
  16.        
  17.         speaker:SetExtraData('NameColor', Color3.fromRGB(255, 0, 0))
  18.         speaker:SetExtraData('ChatColor', Color3.fromRGB(124, 238, 255))
  19.         speaker:SetExtraData('Tags', {{TagText = 'Owner', TagColor = Color3.fromRGB(0, 222, 255)}})        
  20.  
  21.  
  22.     elseif plrs[plr]:IsInGroup(groupId) then       
  23.            
  24.         speaker:SetExtraData('NameColor', Color3.fromRGB(0, 255, 178))
  25.         speaker:SetExtraData('Tags', {{TagText = plrs[plr]:GetRoleInGroup(groupId), TagColor = Color3.fromRGB(0, 255, 77)}})           
  26.     end
  27. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement