4zx16

Premium Gamepass Chat Tag

Jul 17th, 2021 (edited)
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.74 KB | None | 0 0
  1. --[[
  2.  || 📜 AUTHOR: @4zx16 || PREMIUM/VIP+-CHAT-TAG || ONLY CHANGE ID AND TAG TEXT
  3. ]]
  4. local MPS = game:GetService("MarketplaceService")
  5. local id = 0
  6.  
  7. game.Players.PlayerAdded:Connect(function(player)
  8.     if MPS:UserOwnsGamePassAsync(player.UserId, id) then
  9.         local tags = {
  10.             {
  11.                 TagText = "PREMIUM",
  12.                 TagColor = Color3.fromRGB(115, 0, 11)
  13.             }
  14.         }
  15.         local ChatService = require(game:GetService("ServerScriptService"):WaitForChild("ChatServiceRunner").ChatService)
  16.         local speaker = nil
  17.        
  18.         while speaker == nil do
  19.             speaker = ChatService:GetSpeaker(player.Name)
  20.             if speaker ~= nil then break end
  21.             wait(0.01)
  22.         end
  23.         speaker:SetExtraData("Tags",tags)
  24.         speaker:SetExtraData("ChatColor",Color3.fromRGB(115, 0, 11))
  25.     end
  26. end)
Advertisement
Add Comment
Please, Sign In to add comment