Answers for "how to make chat tag in roblox"

2

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
Posted by: Guest on February-26-2021

Browse Popular Code Answers by Language