I’ve found multiple posts on how to make multiple chat tags at once for the LegacyChat but nothing for the new TextChatService
Basically I just want to give premium players a chat tag but if they own a gamepass they get a second tag
and basically i mean tags like this: [gamepass][premium][DonaldDuck5150]: hi
no idea how to do this because ive never done this before but i do know how to do this:
for _, player in pairs(game:GetService('Players'):GetPlayers()) do
if player.MembershipType == Enum.MembershipType.Premium and game:GetService("MarketplaceService"):UserOwnsGamePassAsync(player.UserId, gp) then
local TextChatService = game:GetService("TextChatService")
local Player = game:GetService("Players").LocalPlayer
TextChatService.OnIncomingMessage:Connect(function(message: TextChatMessage)
local props = Instance.new("TextChatMessageProperties")
if player.MembershipType == Enum.MembershipType.Premium and game:GetService("MarketplaceService"):UserOwnsGamePassAsync(player.UserId, gp) then
props.PrefixText = "<font color='#006633'>[gamepass]</font><font color='#F5F5F5'>[Premium]</font> " .. message.PrefixText
return props
end
end)