how to make a custom chat tag roblox code example
Example: roblox chat tag
local ServerScriptService = game:GetService("ServerScriptService")
local ChatService = require(ServerScriptService:WaitForChild("ChatServiceRunner"):WaitForChild("ChatService"))
local Players = game:GetService("Players")
local Admins = {'MrMuppetTheMan'}
ChatService.SpeakerAdded:Connect(function(PlrName)
local Speaker = ChatService:GetSpeaker(PlrName)
for _, v in pairs(Admins) do
if Players[PlrName].Name == v then
Speaker:SetExtraData('Tags', {{TagText = "Muppet/Cool", TagColor = Color3.fromRGB(141, 141, 141)}})
end
end
end)
-- Put into workspace or ServerScriptService
-- Anymore help message me Muppet#6931