I have a very good idea of chat tags but for some reason I just cant get this right. It replaces the players name.
local MarketplaceService = game.MarketplaceService
local ReplicatedStorage = game.ReplicatedStorage
local TextChatService = game.TextChatService
local Players = game.Players
local event = ReplicatedStorage:WaitForChild("TagEvent")
TextChatService.OnIncomingMessage = function(message)
if not message.TextSource or not message.TextSource.UserId then
return
end
local properties = Instance.new("TextChatMessageProperties")
local plr = Players:GetPlayerByUserId(message.TextSource.UserId)
if not plr then return end
print("Made it past checks")
local tags = {}
if plr:GetAttribute("VIP") then
table.insert(tags, "VIP")
end
if plr:GetAttribute("Donator") then
table.insert(tags, "Donator")
end
if #tags == 1 then
local tag = "["..tags[1].."]"
properties.PrefixText = "["..tags[1].."]"
elseif #tags == 2 then
properties.PrefixText = "["..tags[1].."] ["..tags[2].."]"
end
return properties
end

** You are now Level 15! **