Hello, I need help adding a Gamepass chat tag to this group chat tag script so it shows like [Group] [Gamepass] [Player]: Hello!
I’m not sure on how I could implement that. Help or suggestions are appreciated.
local groupid = 16652085 -- groupID --- your group id
local noTag = {1} -- inbetween the braces add your userid or whoever you dont want to show the tags
game.Players.PlayerAdded:Connect(function(player)
if player:IsInGroup(groupid) then
local tags = {
{
TagText = (player:GetRoleInGroup(groupid)), -- Do not change
TagColor = Color3.fromRGB(0, 255, 255) -- Group Role Tag 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
if not table.find(noTag, player.UserId) then
speaker:SetExtraData("Tags",tags)
speaker:SetExtraData("ChatColor",Color3.fromRGB(255, 170, 0)) -- Group Chat Color
else
end
end
end)