Here's the script for the game
Script :
local GamepassID = 1234567890 -- Change this to your Gamepass ID
local MarketlaceService = game:GetService("MarketplaceService")
game.Players.PlayerAdded:Connect(function(player)
if (MarketlaceService:UserOwnsGamePassAsync(player.UserId, GamepassID)) then
local Tags = {
{
TagText = "GamepassName", -- Change GamepassName to whatever you want the players Chat Tag name to be.
TagColor = Color3.fromRGB(0, 170, 255) -- You can change the color of the Chat Tag Text here.
}
}
local TextChatService = require(game:GetService("ServerScriptService"):WaitForChild("ChatServiceRunner").ChatService)
local Speaker = nil
while Speaker == nil do
Speaker = TextChatService:GetSpeaker(player.Name)
if Speaker ~= nil then break end
wait(0.01)
end
Speaker:SetExtraData("Tags",Tags)
Speaker:SetExtraData("ChatColor",Color3.fromRGB(255, 255, 255)) -- You can change the color of the Main chat text here.
end
end)
Support me on Roblox
https://www.roblox.com/users/3238034334/pr...