How to Add /e toggle chat Tag

is there any way when i do /e ToggleChatTag it removes the chat tag from the players chat when he type and when you redo the command it enables it again

Script:

local ServerScriptService = game:GetService("ServerScriptService") -- References the "ServerScriptService", which contains certain elements of the chat that are referenced a few lines below

local ChatServiceRunner = ServerScriptService:WaitForChild("ChatServiceRunner") -- References the "ChatServiceRunner", which runs the Chat System on the Server
local ChatService = require(ChatServiceRunner.ChatService) -- References the ChatService, which handles the messages that are sent in the game
local Speakers = ChatService:GetSpeakerList() -- References the list of Speakers in the game, which includes each player and any artificial speakers that are created


local PlayerTags = { -- Creates a table called "PlayerTags", which is where specific players can be added as well as the customized Chat Colors and Chat Tags


	[00] = { -- The player with this UserId will have these different chat settings in the game

		ChatColor = BrickColor.new("Cyan").Color, -- Change this to the Color you want the player's messages to appear in
		NameColor = BrickColor.new("Institutional white").Color, -- Change this to the Color you want the player's name to appear in
		Font = Enum.Font.SourceSansBold, -- Change this to the font you want the text to appear in (if you delete the word "SourceSansBold" and type a letter in, it'll show available Fonts that can be used
		TextSize = 18, -- Change this to the size of the text that the Chat Tag, Player Name, and Messages will be
		Tags = { -- Starts the Tags List (chat tags will be contained in this table)
			{ -- Starts tag 2
				TagText = "1#", -- Change this to the word(s) that you want in the Chat Tag
				TagColor = BrickColor.new("Bright yellow").Color -- Change this to the Color you want the Chat Tag to appear in
			}, -- Ends tag 2
			{ -- Starts tag 2
				TagText = "👑VIP", -- Change this to the word(s) that you want in the Chat Tag
				TagColor = BrickColor.new("Gold").Color -- Change this to the Color you want the Chat Tag to appear in
			}, -- Ends tag 2
		}, -- Ends Tags List
	}, -- Ends UserId



	[00] = { -- The player with this UserId will have these different chat settings in the game

		ChatColor = BrickColor.new("Cyan").Color, -- Change this to the Color you want the player's messages to appear in
		NameColor = BrickColor.new("Institutional white").Color, -- Change this to the Color you want the player's name to appear in
		Font = Enum.Font.SourceSansBold, -- Change this to the font you want the text to appear in (if you delete the word "SourceSansBold" and type a letter in, it'll show available Fonts that can be used
		TextSize = 18, -- Change this to the size of the text that the Chat Tag, Player Name, and Messages will be
		Tags = { -- Starts the Tags List (chat tags will be contained in this table)
			{ -- Starts tag 2
				TagText = "2#", -- Change this to the word(s) that you want in the Chat Tag
				TagColor = BrickColor.new("Medium stone grey").Color -- Change this to the Color you want the Chat Tag to appear in
			}, -- Ends tag 2
			{ -- Starts tag 2
				TagText = "💎TMember", -- Change this to the word(s) that you want in the Chat Tag
				TagColor = BrickColor.new("Lapis").Color -- Change this to the Color you want the Chat Tag to appear in
			}, -- Ends tag 2
		}, -- Ends Tags List
	}, -- Ends UserId	


	[102586931] = { -- The player with this UserId will have these different chat settings in the game

		ChatColor = BrickColor.new("Cyan").Color, -- Change this to the Color you want the player's messages to appear in
		NameColor = BrickColor.new("Institutional white").Color, -- Change this to the Color you want the player's name to appear in
		Font = Enum.Font.SourceSansBold, -- Change this to the font you want the text to appear in (if you delete the word "SourceSansBold" and type a letter in, it'll show available Fonts that can be used
		TextSize = 18, -- Change this to the size of the text that the Chat Tag, Player Name, and Messages will be
		Tags = { -- Starts the Tags List (chat tags will be contained in this table)
			{ -- Starts tag 2
				TagText = "3#", -- Change this to the word(s) that you want in the Chat Tag
				TagColor = BrickColor.new("CGA brown").Color -- Change this to the Color you want the Chat Tag to appear in
			}, -- Ends tag 2
		}, -- Ends Tags List
	}, -- Ends UserId




} -- Ends PlayerTags

local GroupTags = { -- Creates a table called "GroupTags", which is where specific players can be added as well as the customized Chat Colors and Chat Tags


	[255] = {
		ChatColor = Color3.fromRGB(239, 184, 56), -- Player Message Color 
		NameColor = Color3.fromRGB(0, 130, 255), -- Player's Name Color
		Font = Enum.Font.SourceSansBold, -- 
		TextSize = 18, -- Size of the Tag PlayerName and Message
		Tags = { -- Starts the Tags List (chat tags will be contained in this table)
			{ -- Starts tag 1
				TagText = "HADM", -- Change this to the word(s) that you want in the Chat Tag
				TagColor = Color3.fromRGB(0, 61, 116) -- Change this to the Color you want the Chat Tag to appear in
			}, -- Ends tag 1
		}, -- Ends Tags List
	}, -- Ends RoleID

	[254] = {
		ChatColor = Color3.fromRGB(239, 184, 56), -- Player Message Color 
		NameColor = Color3.fromRGB(0, 130, 255), -- Player's Name Color
		Font = Enum.Font.SourceSansBold, -- 
		TextSize = 18, -- Size of the Tag PlayerName and Message
		Tags = { -- Starts the Tags List (chat tags will be contained in this table)
			{ -- Starts tag 1
				TagText = "ADM", -- Change this to the word(s) that you want in the Chat Tag
				TagColor = Color3.fromRGB(86, 255, 0) -- Change this to the Color you want the Chat Tag to appear in
			}, -- Ends tag 1
		}, -- Ends Tags List
	}, -- Ends RoleID

	[251] = {
		ChatColor = Color3.fromRGB(255, 255, 255), -- Player Message Color 
		NameColor = Color3.fromRGB(0, 24, 59), -- Player's Name Color
		Font = Enum.Font.SourceSansBold, -- 
		TextSize = 18, -- Size of the Tag PlayerName and Message
		Tags = { -- Starts the Tags List (chat tags will be contained in this table)
			{ -- Starts tag 1
				TagText = "DEV", -- Change this to the word(s) that you want in the Chat Tag
				TagColor = Color3.fromRGB(0, 24, 59) -- Change this to the Color you want the Chat Tag to appear in
			}, -- Ends tag 1
		}, -- Ends Tags List
	}, -- Ends RoleID

	[250] = {
		ChatColor = Color3.fromRGB(255, 255, 255), -- Player Message Color 
		NameColor = Color3.fromRGB(199, 0, 0), -- Player's Name Color
		Font = Enum.Font.SourceSansBold, -- 
		TextSize = 18, -- Size of the Tag PlayerName and Message
		Tags = { -- Starts the Tags List (chat tags will be contained in this table)
			{ -- Starts tag 1
				TagText = "SHC", -- Change this to the word(s) that you want in the Chat Tag
				TagColor = Color3.fromRGB(199, 0, 0) -- Change this to the Color you want the Chat Tag to appear in
			}, -- Ends tag 1
		}, -- Ends Tags List
	}, -- Ends RoleID

	[249] = {
		ChatColor = Color3.fromRGB(255, 255, 255), -- Player Message Color 
		NameColor = Color3.fromRGB(87, 0, 0), -- Player's Name Color
		Font = Enum.Font.SourceSansBold, -- 
		TextSize = 18, -- Size of the Tag PlayerName and Message
		Tags = { -- Starts the Tags List (chat tags will be contained in this table)
			{ -- Starts tag 1
				TagText = "HC5", -- Change this to the word(s) that you want in the Chat Tag
				TagColor = Color3.fromRGB(87, 0, 0) -- Change this to the Color you want the Chat Tag to appear in
			}, -- Ends tag 1
		}, -- Ends Tags List
	}, -- Ends RoleID

	[248] = {
		ChatColor = Color3.fromRGB(255, 255, 255), -- Player Message Color 
		NameColor = Color3.fromRGB(87, 0, 0), -- Player's Name Color
		Font = Enum.Font.SourceSansBold, -- 
		TextSize = 18, -- Size of the Tag PlayerName and Message
		Tags = { -- Starts the Tags List (chat tags will be contained in this table)
			{ -- Starts tag 1
				TagText = "HC4", -- Change this to the word(s) that you want in the Chat Tag
				TagColor = Color3.fromRGB(87, 0, 0) -- Change this to the Color you want the Chat Tag to appear in
			}, -- Ends tag 1
		}, -- Ends Tags List
	}, -- Ends RoleID

	[247] = {
		ChatColor = Color3.fromRGB(255, 255, 255), -- Player Message Color 
		NameColor = Color3.fromRGB(87, 0, 0), -- Player's Name Color
		Font = Enum.Font.SourceSansBold, -- 
		TextSize = 18, -- Size of the Tag PlayerName and Message
		Tags = { -- Starts the Tags List (chat tags will be contained in this table)
			{ -- Starts tag 1
				TagText = "HC3", -- Change this to the word(s) that you want in the Chat Tag
				TagColor = Color3.fromRGB(87, 0, 0) -- Change this to the Color you want the Chat Tag to appear in
			}, -- Ends tag 1
		}, -- Ends Tags List
	}, -- Ends RoleID

	[246] = {
		ChatColor = Color3.fromRGB(255, 255, 255), -- Player Message Color 
		NameColor = Color3.fromRGB(87, 0, 0), -- Player's Name Color
		Font = Enum.Font.SourceSansBold, -- 
		TextSize = 18, -- Size of the Tag PlayerName and Message
		Tags = { -- Starts the Tags List (chat tags will be contained in this table)
			{ -- Starts tag 1
				TagText = "HC2", -- Change this to the word(s) that you want in the Chat Tag
				TagColor = Color3.fromRGB(87, 0, 0) -- Change this to the Color you want the Chat Tag to appear in
			}, -- Ends tag 1
		}, -- Ends Tags List
	}, -- Ends RoleID

	[245] = {
		ChatColor = Color3.fromRGB(255, 255, 255), -- Player Message Color 
		NameColor = Color3.fromRGB(87, 0, 0), -- Player's Name Color
		Font = Enum.Font.SourceSansBold, -- 
		TextSize = 18, -- Size of the Tag PlayerName and Message
		Tags = { -- Starts the Tags List (chat tags will be contained in this table)
			{ -- Starts tag 1
				TagText = "HC1", -- Change this to the word(s) that you want in the Chat Tag
				TagColor = Color3.fromRGB(87, 0, 0) -- Change this to the Color you want the Chat Tag to appear in
			}, -- Ends tag 1
		}, -- Ends Tags List
	}, -- Ends RoleID
	
	[244] = {
		ChatColor = Color3.fromRGB(255, 255, 255), -- Player Message Color 
		NameColor = Color3.fromRGB(241, 96, 0), -- Player's Name Color
		Font = Enum.Font.SourceSansBold, -- 
		TextSize = 18, -- Size of the Tag PlayerName and Message
		Tags = { -- Starts the Tags List (chat tags will be contained in this table)
			{ -- Starts tag 1
				TagText = "V", -- Change this to the word(s) that you want in the Chat Tag
				TagColor = Color3.fromRGB(241, 96, 0) -- Change this to the Color you want the Chat Tag to appear in
			}, -- Ends tag 1
		}, -- Ends Tags List
	}, -- Ends RoleID
	
	[20] = {
		ChatColor = Color3.fromRGB(255, 255, 255), -- Player Message Color 
		NameColor = Color3.fromRGB(0, 189, 168), -- Player's Name Color
		Font = Enum.Font.SourceSansBold, -- 
		TextSize = 18, -- Size of the Tag PlayerName and Message
		Tags = { -- Starts the Tags List (chat tags will be contained in this table)
			{ -- Starts tag 1
				TagText = "HR4", -- Change this to the word(s) that you want in the Chat Tag
				TagColor = Color3.fromRGB(0, 189, 168) -- Change this to the Color you want the Chat Tag to appear in
			}, -- Ends tag 1
		}, -- Ends Tags List
	}, -- Ends RoleID

	[19] = {
		ChatColor = Color3.fromRGB(255, 255, 255), -- Player Message Color 
		NameColor = Color3.fromRGB(0, 189, 168), -- Player's Name Color
		Font = Enum.Font.SourceSansBold, -- 
		TextSize = 18, -- Size of the Tag PlayerName and Message
		Tags = { -- Starts the Tags List (chat tags will be contained in this table)
			{ -- Starts tag 1
				TagText = "HR3", -- Change this to the word(s) that you want in the Chat Tag
				TagColor = Color3.fromRGB(0, 189, 168) -- Change this to the Color you want the Chat Tag to appear in
			}, -- Ends tag 1
		}, -- Ends Tags List
	}, -- Ends RoleID

	[18] = {
		ChatColor = Color3.fromRGB(255, 255, 255), -- Player Message Color 
		NameColor = Color3.fromRGB(0, 189, 168), -- Player's Name Color
		Font = Enum.Font.SourceSansBold, -- 
		TextSize = 18, -- Size of the Tag PlayerName and Message
		Tags = { -- Starts the Tags List (chat tags will be contained in this table)
			{ -- Starts tag 1
				TagText = "HR2", -- Change this to the word(s) that you want in the Chat Tag
				TagColor = Color3.fromRGB(0, 189, 168) -- Change this to the Color you want the Chat Tag to appear in
			}, -- Ends tag 1
		}, -- Ends Tags List
	}, -- Ends RoleID

	[17] = {
		ChatColor = Color3.fromRGB(255, 255, 255), -- Player Message Color 
		NameColor = Color3.fromRGB(0, 189, 168), -- Player's Name Color
		Font = Enum.Font.SourceSansBold, -- 
		TextSize = 18, -- Size of the Tag PlayerName and Message
		Tags = { -- Starts the Tags List (chat tags will be contained in this table)
			{ -- Starts tag 1
				TagText = "HR1", -- Change this to the word(s) that you want in the Chat Tag
				TagColor = Color3.fromRGB(0, 189, 168) -- Change this to the Color you want the Chat Tag to appear in
			}, -- Ends tag 1
		}, -- Ends Tags List
	}, -- Ends RoleID

	[16] = {
		ChatColor = Color3.fromRGB(255, 255, 255), -- Player Message Color 
		NameColor = Color3.fromRGB(148, 29, 255), -- Player's Name Color
		Font = Enum.Font.SourceSansBold, -- 
		TextSize = 18, -- Size of the Tag PlayerName and Message
		Tags = { -- Starts the Tags List (chat tags will be contained in this table)
			{ -- Starts tag 1
				TagText = "B", -- Change this to the word(s) that you want in the Chat Tag
				TagColor = Color3.fromRGB(148, 29, 255) -- Change this to the Color you want the Chat Tag to appear in
			}, -- Ends tag 1
		}, -- Ends Tags List
	}, -- Ends RoleID
	
	[15] = {
		ChatColor = Color3.fromRGB(255, 255, 255), -- Player Message Color 
		NameColor = Color3.fromRGB(170, 170, 0), -- Player's Name Color
		Font = Enum.Font.SourceSansBold, -- 
		TextSize = 18, -- Size of the Tag PlayerName and Message
		Tags = { -- Starts the Tags List (chat tags will be contained in this table)
			{ -- Starts tag 1
				TagText = "VIP", -- Change this to the word(s) that you want in the Chat Tag
				TagColor = Color3.fromRGB(170, 170, 0) -- Change this to the Color you want the Chat Tag to appear in
			}, -- Ends tag 1
		}, -- Ends Tags List
	}, -- Ends RoleID

	[12] = {
		ChatColor = Color3.fromRGB(255, 255, 255), -- Player Message Color 
		NameColor = Color3.fromRGB(255, 0, 104), -- Player's Name Color
		Font = Enum.Font.SourceSansBold, -- 
		TextSize = 18, -- Size of the Tag PlayerName and Message
		Tags = { -- Starts the Tags List (chat tags will be contained in this table)
			{ -- Starts tag 1
				TagText = "A", -- Change this to the word(s) that you want in the Chat Tag
				TagColor = Color3.fromRGB(255, 0, 104) -- Change this to the Color you want the Chat Tag to appear in
			}, -- Ends tag 1
		}, -- Ends Tags List
	}, -- Ends RoleID

	[11] = {
		ChatColor = Color3.fromRGB(255, 255, 255), -- Player Message Color 
		NameColor = Color3.fromRGB(119, 0, 133), -- Player's Name Color
		Font = Enum.Font.SourceSansBold, -- 
		TextSize = 18, -- Size of the Tag PlayerName and Message
		Tags = { -- Starts the Tags List (chat tags will be contained in this table)
			{ -- Starts tag 1
				TagText = "CWO", -- Change this to the word(s) that you want in the Chat Tag
				TagColor = Color3.fromRGB(119, 0, 133) -- Change this to the Color you want the Chat Tag to appear in
			}, -- Ends tag 1
		}, -- Ends Tags List
	}, -- Ends RoleID

	[10] = {
		ChatColor = Color3.fromRGB(255, 255, 255), -- Player Message Color 
		NameColor = Color3.fromRGB(119, 0, 133), -- Player's Name Color
		Font = Enum.Font.SourceSansBold, -- 
		TextSize = 18, -- Size of the Tag PlayerName and Message
		Tags = { -- Starts the Tags List (chat tags will be contained in this table)
			{ -- Starts tag 1
				TagText = "WO3", -- Change this to the word(s) that you want in the Chat Tag
				TagColor = Color3.fromRGB(119, 0, 133) -- Change this to the Color you want the Chat Tag to appear in
			}, -- Ends tag 1
		}, -- Ends Tags List
	}, -- Ends RoleID

	[9] = {
		ChatColor = Color3.fromRGB(255, 255, 255), -- Player Message Color 
		NameColor = Color3.fromRGB(119, 0, 133), -- Player's Name Color
		Font = Enum.Font.SourceSansBold, -- 
		TextSize = 18, -- Size of the Tag PlayerName and Message
		Tags = { -- Starts the Tags List (chat tags will be contained in this table)
			{ -- Starts tag 1
				TagText = "WO2", -- Change this to the word(s) that you want in the Chat Tag
				TagColor = Color3.fromRGB(119, 0, 133) -- Change this to the Color you want the Chat Tag to appear in
			}, -- Ends tag 1
		}, -- Ends Tags List
	}, -- Ends RoleID

	[8] = {
		ChatColor = Color3.fromRGB(255, 255, 255), -- Player Message Color 
		NameColor = Color3.fromRGB(119, 0, 133), -- Player's Name Color
		Font = Enum.Font.SourceSansBold, -- 
		TextSize = 18, -- Size of the Tag PlayerName and Message
		Tags = { -- Starts the Tags List (chat tags will be contained in this table)
			{ -- Starts tag 1
				TagText = "WO1", -- Change this to the word(s) that you want in the Chat Tag
				TagColor = Color3.fromRGB(119, 0, 133) -- Change this to the Color you want the Chat Tag to appear in
			}, -- Ends tag 1
		}, -- Ends Tags List
	}, -- Ends RoleID

	[7] = {
		ChatColor = Color3.fromRGB(255, 255, 255), -- Player Message Color 
		NameColor = Color3.fromRGB(1, 0, 133), -- Player's Name Color
		Font = Enum.Font.SourceSansBold, -- 
		TextSize = 18, -- Size of the Tag PlayerName and Message
		Tags = { -- Starts the Tags List (chat tags will be contained in this table)
			{ -- Starts tag 1
				TagText = "CPO", -- Change this to the word(s) that you want in the Chat Tag
				TagColor = Color3.fromRGB(1, 0, 133) -- Change this to the Color you want the Chat Tag to appear in
			}, -- Ends tag 1
		}, -- Ends Tags List
	}, -- Ends RoleID

	[6] = {
		ChatColor = Color3.fromRGB(255, 255, 255), -- Player Message Color 
		NameColor = Color3.fromRGB(1, 0, 133), -- Player's Name Color
		Font = Enum.Font.SourceSansBold, -- 
		TextSize = 18, -- Size of the Tag PlayerName and Message
		Tags = { -- Starts the Tags List (chat tags will be contained in this table)
			{ -- Starts tag 1
				TagText = "PO3", -- Change this to the word(s) that you want in the Chat Tag
				TagColor = Color3.fromRGB(1, 0, 133) -- Change this to the Color you want the Chat Tag to appear in
			}, -- Ends tag 1
		}, -- Ends Tags List
	}, -- Ends RoleID

	[5] = {
		ChatColor = Color3.fromRGB(255, 255, 255), -- Player Message Color 
		NameColor = Color3.fromRGB(1, 0, 133), -- Player's Name Color
		Font = Enum.Font.SourceSansBold, -- 
		TextSize = 18, -- Size of the Tag PlayerName and Message
		Tags = { -- Starts the Tags List (chat tags will be contained in this table)
			{ -- Starts tag 1
				TagText = "PO2", -- Change this to the word(s) that you want in the Chat Tag
				TagColor = Color3.fromRGB(1, 0, 133) -- Change this to the Color you want the Chat Tag to appear in
			}, -- Ends tag 1
		}, -- Ends Tags List
	}, -- Ends RoleID

	[4] = {
		ChatColor = Color3.fromRGB(255, 255, 255), -- Player Message Color 
		NameColor = Color3.fromRGB(1, 0, 133), -- Player's Name Color
		Font = Enum.Font.SourceSansBold, -- 
		TextSize = 18, -- Size of the Tag PlayerName and Message
		Tags = { -- Starts the Tags List (chat tags will be contained in this table)
			{ -- Starts tag 1
				TagText = "PO1", -- Change this to the word(s) that you want in the Chat Tag
				TagColor = Color3.fromRGB(1, 0, 133) -- Change this to the Color you want the Chat Tag to appear in
			}, -- Ends tag 1
		}, -- Ends Tags List
	}, -- Ends RoleID

	[3] = {
		ChatColor = Color3.fromRGB(255, 255, 255), -- Player Message Color 
		NameColor = Color3.fromRGB(55, 168, 0), -- Player's Name Color
		Font = Enum.Font.SourceSansBold, -- 
		TextSize = 18, -- Size of the Tag PlayerName and Message
		Tags = { -- Starts the Tags List (chat tags will be contained in this table)
			{ -- Starts tag 1
				TagText = "S3", -- Change this to the word(s) that you want in the Chat Tag
				TagColor = Color3.fromRGB(55, 168, 0) -- Change this to the Color you want the Chat Tag to appear in
			}, -- Ends tag 1
		}, -- Ends Tags List
	}, -- Ends RoleID

	[2] = {
		ChatColor = Color3.fromRGB(255, 255, 255), -- Player Message Color 
		NameColor = Color3.fromRGB(55, 168, 0), -- Player's Name Color
		Font = Enum.Font.SourceSansBold, -- 
		TextSize = 18, -- Size of the Tag PlayerName and Message
		Tags = { -- Starts the Tags List (chat tags will be contained in this table)
			{ -- Starts tag 1
				TagText = "S2", -- Change this to the word(s) that you want in the Chat Tag
				TagColor = Color3.fromRGB(55, 168, 0) -- Change this to the Color you want the Chat Tag to appear in
			}, -- Ends tag 1
		}, -- Ends Tags List
	}, -- Ends RoleID

	[1] = {
		ChatColor = Color3.fromRGB(255, 255, 255), -- Player Message Color 
		NameColor = Color3.fromRGB(55, 168, 0), -- Player's Name Color
		Font = Enum.Font.SourceSansBold, -- 
		TextSize = 18, -- Size of the Tag PlayerName and Message
		Tags = { -- Starts the Tags List (chat tags will be contained in this table)
			{ -- Starts tag 1
				TagText = "S1", -- Change this to the word(s) that you want in the Chat Tag
				TagColor = Color3.fromRGB(55, 168, 0) -- Change this to the Color you want the Chat Tag to appear in
			}, -- Ends tag 1
		}, -- Ends Tags List
	}, -- Ends RoleID
	





} -- Ends GroupTags


local RankRanges = { -- Creates a table called "RankRanges", which contains ranges of ranks in a group if you want players across a group of roles to have the same chat tags and settings

	LowRanks = NumberRange.new(1,100), -- Creates a range called "LowRanks", with the lowest RoleId being "1" and the highest being "100"
	MoreRanks = NumberRange.new(101,255), -- Creates a range called "MoreRanks", with the lowest RoleId being "101" and the highest being "255"

} -- Ends the "RankRanges" table


local function SetChatTags(SpeakerName) -- Creates a function called "SetChatTags" with a parameter of "SpeakerName"
	local speaker = ChatService:GetSpeaker(SpeakerName) -- Defines "speaker" as getting the Speaker from its name
	local player = speaker:GetPlayer() -- Defines "player" as getting the Player from the Speaker 

	if player then -- If it is a player, then...
		local PlayerCheck = PlayerTags[player.UserId] -- It will look through the "PlayerTags" table and see if their UserId is listed there

		local Group = 16885155 -- Defines "Group" as being the Group Id of your group
		local GroupCheck = player:IsInGroup(Group) -- Defines "GroupCheck" as checking if the player is in the group defined above
		local RankCheck = player:GetRankInGroup(Group) -- Defines "RankCheck" as checking the player's rank in the group

		local GroupTagCheck = GroupTags[RankCheck] -- Defines "GroupTagCheck" as looking through the "GroupTags" table for the same number as their RoleId

		if PlayerCheck then -- If it finds their UserId in the "PlayerTags" table, then...
			for key, value in pairs(PlayerCheck) do -- It will loop through that part of the table, and...
				speaker:SetExtraData(key, value) -- The "key" references the ChatColor, NameColor, Font, TextSize, Tags, etc., and the "value" references what is on the right side of the equals sign
				print("PlayerTag set") -- Print that their PlayerTag has been set to see if it's working
			end -- Ends the PlayerCheck loop

		elseif GroupCheck then

			if GroupTagCheck ~= nil then
				for key, value in pairs(GroupTagCheck) do 
					speaker:SetExtraData(key, value)
					print("GroupTag set")
				end
			end
		end
	end
end

ChatService.SpeakerAdded:Connect(SetChatTags)

for i, SpeakerName in pairs(Speakers) do
	SetChatTags(SpeakerName)
end

i think you’d have to make your own custom chat, as im not sure there is a way to remove extra tags