Error: GetPlayerName is not a valid member of Players "Players"
local ServerScriptService = game:GetService('ServerScriptService')
local ChatService = require(ServerScriptService:WaitForChild('ChatServiceRunner'):WaitForChild('ChatService'))
local Players = game:GetService("Players")
local function Speak(GetPlayerName)
local Speaker = ChatService:GetSpeaker(GetPlayerName)
if Players.GetPlayerName:GetRankInGroup(4972654) == 3 then
Speaker:SetExtraData('Tags', {{TagText = 'Contributor', TagColor = Color3.fromRGB(209, 202, 2)}})
Speaker:SetExtraData('ChatColor', Color3.fromRGB(255, 200, 0))
Speaker:SetExtraData('NameColor', Color3.fromRGB(255, 170, 0))
end
end
ChatService.SpeakerAdded:Connect(Speak)
