the tag only shows on the player with the title equipped, and for others screens it will only show the title that THEY have equipped
Player 1 with a title equipped
Player2 that doesnt have a title equipped
local RS = game:GetService("ReplicatedStorage")
local TCS = game:GetService("TextChatService")
local TitleStats = require(RS:WaitForChild("Modules"):WaitForChild("TitleStats"))
local GetData = RS:WaitForChild("RemoteEvents"):WaitForChild("GetData")
TCS.OnIncomingMessage = function(msg)
local props = Instance.new("TextChatMessageProperties")
if msg.TextSource then
local plr = game.Players:GetPlayerByUserId(msg.TextSource.UserId)
local Title = GetData:InvokeServer(plr)["TitleStats"]["Equipped"]
local Stats = TitleStats[Title]
if Stats then
props.PrefixText = [[<font color="]]..Stats["ChatColor"]..[[">]]..Stats["Text"]..[[</font> ]]..msg.PrefixText
end
end
return props
end