Guest User

Chat Service Script Problem

a guest
Sep 11th, 2019
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. local ChatService = require(script.Parent:WaitForChild("ChatServiceRunner"):WaitForChild("ChatService"))
  2.  
  3. Devs = {gunfire123333434 = true}
  4. game:GetService("Players").PlayerAdded:Connect(function(player)
  5. print("UPDATE")
  6. player.CharacterAdded:Connect(function(char)
  7.  
  8.  
  9. if Devs[player.Name] then
  10. local speaker = ChatService:GetSpeaker(player.Name)
  11. print("Developer")
  12. speaker:SetExtraData("Tags",{{TagText = "Developer", TagColor = Color3.fromRGB(255,0,0)}})
  13.  
  14. elseif game:GetService("MarketplaceService"):UserOwnsGamePassAsync(player.UserId,7148068) then
  15. print("I own it")
  16. local speaker = ChatService:GetSpeaker(player.Name)
  17. speaker:SetExtraData("Tags",{{TagText = "VIP", TagColor = Color3.fromRGB(255,255,0)}}) -- Here is it
  18.  
  19. elseif player:IsInGroup(4298974) then
  20. print("GroupMember")
  21. local speaker = ChatService:GetSpeaker(player.Name)
  22. speaker:SetExtraData("Tags",{{TagText = "Member", TagColor = Color3.fromRGB(0,255,0)}})
  23.  
  24.  
  25. end
  26. end)
  27. end)
Advertisement
Add Comment
Please, Sign In to add comment