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:
01 | local ChatService = require(game.ServerScriptService:WaitForChild( "ChatServiceRunner" ):WaitForChild( "ChatService" )) |
04 | StaffTag = { TagText = "????" , TagColor = Color 3. fromRGB( 239 , 184 , 56 ) } |
07 | ChatService.SpeakerAdded:Connect( function (playerName) |
08 | local speaker = ChatService:GetSpeaker(playerName) |
09 | local player = game.Players [ playerName ] |
11 | if player:GetRankInGroup( 6153634 ) > = 4 then |
12 | speaker:SetExtraData( "Tags" , tags [ "StaffTag" ] ) |