How is this player using the verified check mark in their message?

EDIT: By the way, this person somehow did it just by sending a chat

image
I came across this user and I realized that the verified check mark was inside the message, not the username
I found a devforum post related to this

The problem is, when I tried this myself, it got tagged

How did they do this? I want to use the Robux icon in the chat for a game I’m making.

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

I made this template by editing it

1 Like

Is this supposed to be in a server or local script? I’m trying to do this in a local script for reasons.

You have to use textchatservice in localscript. So localscript.

1 Like

Also will this show to everyone else in the game? Or just the person sending the message? I’m trying to get it to show to eveyone

OnIncomingMessage is when local player receiving a message from another player

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
1 Like