I’m using this piece of code to detect player messages using the ROBLOX ChatService, this works fine for messages in public channels like “all” however it does not seem to trigger when in team chat. How do I go about detecting messages sent in team chat? I couldn’t find anything in the documentation. I’m trying to add a piece of information to the team chat.
local function HandleSpeakerAdded(playerName: string) local speaker = ChatService:GetSpeaker(playerName) speaker.SaidMessage:Connect(function(messageObject, channelName) print(messageObject, channelName) end) end ChatService.SpeakerAdded:Connect(HandleSpeakerAdded)