Togglable chat tags

Is there a possible way to do a slash command such as /toggle and or /toggleoff For Chat Tags? like, I’ve been trying to figure this out for the past 30 minutes. at most, anyone have Code Examples? here’s my code.

 
local sss = game.ServerScriptService
 
local chatService = require(sss:WaitForChild('ChatServiceRunner'):WaitForChild('ChatService'))
 
 
chatService.SpeakerAdded:Connect(function(plr)

    local speaker = chatService:GetSpeaker(plr)


	if plrs[plr].UserId == 366310042 then

        speaker:SetExtraData('NameColor', Color3.fromRGB(28, 249, 146))
        speaker:SetExtraData('ChatColor', Color3.fromRGB(170, 0, 255))
        speaker:SetExtraData('Tags', {{TagText = 'V-FLIP DEVELOPER', TagColor = Color3.fromRGB(170, 0, 255)}})

    end
end)```
1 Like

You can set the tags back to {}, if it’s disabled:

speaker:SetExtraData('Tags', {});
1 Like