Hey guys,
So I was messing around with the chat and I decided to make some chat tags. It errors out saying
SpeakerAdded is not a valid member of ModuleScript "ServerScriptService.ChatServiceRunner.ChatService"
I don’t know why this is happening, here’s my script in ServerScriptService:
local ChatService = game.ServerScriptService:WaitForChild("ChatServiceRunner"):WaitForChild("ChatService")
local developers = {1998082358, 302070682}
ChatService.SpeakerAdded:Connect(function(playerName)
local speaker = ChatService:GetSpeaker(playerName)
if table.find(developers, game.Players[playerName].UserId) then
speaker:SetExtraData("Tags", {text = "Developer", color = Color3.fromRGB(0, 170, 255)})
end
end)
Thanks!
- anirudh851