ChatTags - An easy way to make a Custom Chat Tags!

Script link here

Showcase:

New TextChatService:
image

Old LegacyChatService
image

How to Setup:

  1. Download the ChatTags module and put it in your game (I recommend putting it in ServerScriptService)
  2. Require the module

Functions:

- Update(player:Player)
Updates the Player’s ChatTags.

- Add(player:Player, tagText:string, tagColor:Color3, Order:number)
If another Tags with the same order is found, it will overwrite the old one.

- Remove(player:Player, Order:number)
Remove a specific ChatTags from a specific Player.

- RemoveAll(player:Player)
Remove all ChatTags from a specific Player.

Configuration

- AutoUpdate
If set to true will update player’s tag everytime it changes.

- DefaultColor
This color will be chosen if you don’t put in any color when you add a new tag.

Latest Version: v1.0.0

22 Likes

can there be a script, where it assigns the developer of the game’s friends with a special chat tag called friends, instead of manually adding the ID of every single friend, for example if I made a friend today i ain’t gonna remember to add them so the script should check if that person is a friend of me and assign the role, I wanna know if that is possible and how to do it

1 Like

You can use this script:

local Players = game:GetService('Players')
local ChatTags = require(script:WaitForChild('ChatTags')) --Replace this with the path to the ChatTags

local FriendTagTitle = '[Friend]'
local FriendTagColor = Color3.fromRGB(85, 255, 255)

local OwnerId = 0 --Replace this with the Developer's UserId

Players.PlayerAdded:Connect(function(player)
	local isFriendWithOwner = false
	
	pcall(function()
		isFriendWithOwner = player:IsFriendsWith(OwnerId)
	end)
	
	if isFriendWithOwner then
		ChatTags.Add(player,FriendTagTitle,FriendTagColor,1)
	end
end)
3 Likes

Loved your module!
I’m applying it to Anime Hatchers!

3 Likes

It doesnt work,

When I chat, it always shows three “?” at the tag,

this is my Script:

local Players = game:GetService('Players')
local ChatTags = require(script:WaitForChild('ChatTags')) --Replace this with the path to the ChatTags

local FriendTagTitle = '[Friend]'
local FriendTagColor = Color3.fromRGB(0, 0, 0)

Players.PlayerAdded:Connect(function(player)
	
	ChatTags.Add(player,"bro",FriendTagColor,1)
	
end)

Explorer looks like this:
image

And when I chat it looks like this:
image

You shouldn’t be using the Legacy Chat anyway since it’s being removed soon.

1 Like

You’re right, I just changed to new TextChat,
and now it works PERFECTLY!

Kinda late to this but is there a way to change this to have gradient effect on it?

Typically, that would require a more technical approach, such as forking the chat and rewriting it to allow that level of customization. Evade has a custom chat system that not only adds gradients to chat tags but also includes additional effects, such as moving particles.

I’d suggest looking at this open-source implementation of TextChatService. I believe it supports what you’re trying to achieve.

I mean i rly do not need it but i was wondering if you can easily change something to add is as extra since why not. thanks tho