Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Why aren't the tags in chat not working?

My script is supposed to give admins in my group a tag when they speak in chat, but it doesn't.

Error = "TagColor is not a valid member of Color3" - This error doesn't come from the script, but it comes from a defult script in chat serivce. But I think it has to be with my script.

Script:

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

local tags = {
	StaffTag = {TagText = "????", TagColor = Color3.fromRGB(239, 184, 56)}
}

ChatService.SpeakerAdded:Connect(function(playerName)
	local speaker = ChatService:GetSpeaker(playerName)
	local player = game.Players[playerName]

	if player:GetRankInGroup(6153634) >= 4 then
		speaker:SetExtraData("Tags", tags["StaffTag"])
	end
end)

1 answer

✓ Accepted answer

Try

speaker:SetExtraData("Tags",{{TagText = "?????", TagColor = Color3.fromRGB(1,2,3)}})

Also is the script local or server?

4 comments

0

Still got error

0

Still got error

0

I'll look further into this.

0

Wait a second, I forgot 2 pairs of brackets, sorry!

This discussion is preserved as it was. New answers, comments, and votes are closed.