I’m trying to make a chat tag for myself but nothing seems to show up, i’ve looked though the code and nothing seems wrong
local textChatService = game:GetService("TextChatService")
textChatService.OnIncomingMessage = function(message: TextChatMessage)
local properties = Instance.new("TextChatMessageProperties")
if message.TextSource then
local player = game:GetService("Players"):GetPlayerByUserId(message.TextSource.UserId)
if player.Name == "cozfl" then
properties.PrefixText = "<font color='#fcd303'>[boing]</font>" .. message.PrefixText
end
end
return properties
end
I’ve tried swapping from username to UserID but it didn’t do anything.
I assume there’s a small error in the code but I can’t seem to figure out what it is
any help would be greatly appreciated!