How to make VIP/gamepass chat tag. “VID.1”

Опубликовано: 16 Июль 2026
на канале: SammyDev tips
169
5

Hello! Im sammy i’m trying to help out non-knowledge scripters or just small developers. I normally make simple things I will soon go little more advance. I’m making a youtube channel later in time for bigger developers.

Script:

local gamepassId = 545645645 -- Gamepass ID
local service = game:GetService("MarketplaceService")

game.Players.PlayerAdded:Connect(function(player)
if (service:UserOwnsGamePassAsync(player.UserId, gamepassId)) then
local tags = {
{
TagText = "VIP", -- Tag
TagColor = Color3.fromRGB(255, 255, 0) -- VIP Color
}
}
local ChatService = require(game:GetService("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)
speaker:SetExtraData("ChatColor",Color3.fromRGB(0, 170, 255)) -- Text Color
end
end)