Custom Chat Tag, removing the bracket

  1. What do you want to achieve? I was the remove the brackets around “AWESOME.” Is there a command I don’t know about?

My script:

	local tags = Instance.new("Folder",plr)
	tags.Name = "Tags"
	if plr.Name == "xxMLGxx8643" then
		local newTag = Instance.new("IntValue",tags)
		newTag.Name = "AWESOME"
		local chatColor = Instance.new("Color3Value",newTag)
		chatColor.Name = "ChatColor"
		chatColor.Value = BrickColor.new("New Yeller").Color
	local tagColor = Instance.new("Color3Value",newTag)
	tagColor.Name = "TagColor"
	tagColor.Value = Color3.fromRGB(255,255,255)
	end
	
end)```

2. **What is the issue?** ![Capture|349x53](upload://bqg9EIbeydVrZv9tllrqmObXqFF.png) 

3. **What solutions have you tried so far?** I've tried to do the destory() command and get help from friends

It took some time but I found it, firstly fork the chat and look at:
ClientChatModules -> DefaultChatMessage -> Line 41

This for loop loops through their tags and adds them, then on line 44:

local formatTagText = string.format("[%s] ", tagText)

It inserts the square brackets around, you can just define formatTagText as tagText to remove them:

local formatTagText = tagText
1 Like

@return_end1 Thank you very much, I’ll try it and let you know/

1 Like

FYI: I’d recommend the method of adding chat tags via :SetExtraData of the ChatServiceRunner, this thread will explain more: