VIP Chat Gamepass

VIP Chat Gamepass

by G2001H

Author Avatar

Hello Everyone! Today im gonna explain how to make VIP Chat Gamepass I can't explain everything good because im not english, but i will try my best!

Script:

You can see all explains in Script, its easy way for me to explain, i hope its easy way to learn too. First you need to create a Script in ServerScriptService Open Script and type:

local MarketplaceService = game:GetService("MarketplaceService")
local GamepassID = 000000 -- Change '000000' to your Gamepass ID

game.Players.PlayerAdded:Connect(function(Player) --When player join in game
    if MarketplaceService:UserOwnsGamePassAsync(Player.UserId, GamepassID) then -- If player have gamepass..
        local tags = {
            {
                TagText = "VIP", -- Tag Name, You can change to whatever you like
                TagColor = Color3.fromRGB(255, 255, 0) -- Tag Color, You can change to color you like
            }
        }
        local ChatService = require(game:GetService("ServerScriptService"):WaitForChild("ChatServiceRunner").ChatService) -- Requires ChatService
        local speaker = nil -- speaker is nil
        while speaker == nil do -- While speaker is nil do..
            speaker = ChatService:GetSpeaker(Player.Name) -- Get speaker from player
            if speaker ~= nil then 
                break -- If speaker is nil then break
            end 
            wait(0.01) -- wait
        end
        speaker:SetExtraData("Tags",tags) -- Set tags
        speaker:SetExtraData("ChatColor",Color3.fromRGB(255, 255, 0)) -- Chat Color, You can change to color you like
    end
end)

I hope this helped you! Feel free to Contact me if you need help with this :)

View in-game to comment, award, and more!