Answers for "roblox chat types"

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
0

roblox chat tag

local chatService = require(game.ServerScriptService:WaitForChild("ChatServiceRunner"):WaitForChild("ChatService"))

local tags = {
	[0] = {TagText = "TUTORIAL", TagColor = Color3.fromRGB(255, 0, 0)}, -- The 0 must be changed to the the id of the user you want the tag to have
}

chatService.SpeakerAdded:Connect(function(playerName)
	local speaker = chatService:GetSpeaker(playerName)
	local player = game.Players[playerName]
	
	if tags[player.UserId] then
		speaker:SetExtraData("Tags",{tags[player.UserId]})
	end
end)

-- On line 5, change the numbers after fromRGB( to any colour you desire for the tag to be.
-- Again on line 5, change the text that is in "" which it is displayed as TUTORIAL right now, just change that to what you want the tag name to be that will be displayed in the chat.
-- Made by xontez! No credit needed.
Posted by: Guest on August-19-2021

Browse Popular Code Answers by Language