Hello, this script gives players a custom chat if in a group although I’m working on adding a gamepass tag that gives them another tag before the group one but I’m not sure on how I could implement that. Help or suggestions are appreciated.
local ServerScriptService = game:GetService("ServerScriptService")
local ChatService = require(ServerScriptService:WaitForChild("ChatServiceRunner"):FindFirstChild("ChatService"))
local Players = game:GetService("Players")
local Tags = {
[255] = {{TagText = "Lead Developer", TagColor = Color3.fromRGB(255, 0, 120)}},
[254] = {{TagText = "Contributor", TagColor = Color3.fromRGB(0, 255, 100)}},
[1] = {{TagText = "Member", TagColor = Color3.fromRGB(255,0,0)}}
}
ChatService.SpeakerAdded:Connect(function(Player)
local Speaker = ChatService:GetSpeaker(Player)
local Player = Players[Player]
local Tag = Tags[Player:GetRankInGroup(13738768)]
if Tag then
Speaker:SetExtraData("Tags", Tag)
end
end)