local txt = game:GetService("TextChatService")
txt.OnIncomingMessage = function(msg:TextChatMessage)
local p = Instance.new("TextChatMessageProperties")
if msg.TextSource then
p.PrefixText = msg.PrefixText.." "
end
return p
end
Yes, think of it this way: TextChatService only returns the message to you, and you control its visibility. So, if you want, the premium emoji for the first player who joins the game can be different from the ones who join later.
if you want you wrote this message like this:
local txt = game:GetService("TextChatService")
txt.OnIncomingMessage = function(msg:TextChatMessage)
local p = Instance.new("TextChatMessageProperties")
if msg.TextSource then
if game:GetService("Players"):GetPlayerByUserId(msg.TextSource.UserId).MembershipType == Enum.MembershipType.Premium then
p.PrefixText = msg.PrefixText.." "
end
end
return p
end