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)

4 comments
Still got error
Still got error
I'll look further into this.
Wait a second, I forgot 2 pairs of brackets, sorry!