Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Add a Script into the Workspace
- local id = "" -- Set this to your gamepass id
- local mps = game:GetService("MarketplaceService") -- The service
- game.Players.PlayerAdded:Connect(function(player)
- if (mps:UserOwnsGamePassAsync(player.UserId, id)) then
- local tags = {
- {
- TagText = "VIP", -- Change this to the name of the gamepass like Premium or something
- TagColor = Color3.new(255, 255, 0) -- Tag Color
- }
- }
- local ChatService = require(game.ServerScriptService:WaitForChild("ChatServiceRunner").ChatService)
- local speaker = nil
- while speaker == nil do
- speaker = ChatService:GetSpeaker(player.Name)
- if speaker ~= nil then break end
- wait(0.01)
- end
- speaker:SetExtraData("Tags", tags) -- Sets the tag
- speaker:SetExtraData("ChatColor", Color3.new(255, 255, 0)) -- Chat Color
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement