Player.Chatted not firing on client when the chat version is set to TextChatService

Reproduction Steps

  • Create a LocalScript in StarterCharacterScripts and make it print anything using the Player.Chatted event.
  • Change the TextChatService ChatVersion from LegacyChatService to TextChatService.
  • Test either in game or in studio, the message the player sent will never print.

Expected Behaviour
Like it already happens with the LegacyChatService, the messages sent by the player should trigger the Player.Chatted event.

Actual Behaviour
Player.Chatted will never print when using the new TextChatService.

Repro File
Reproduction.rbxl (35.9 KB)

.Chatted isn’t supposed to be used with TextChatService.

https://create.roblox.com/docs/building-and-visuals/ui/in-experience-text-chat

6 Likes

Ah I see, so TextChatService.MessageReceived would be the replacement right?

local TextChatService = game:GetService("TextChatService")
TextChatService.MessageReceived:Connect(function(TextChatMessage)
    local Player = TextChatMessage.TextSource
    local Message = TextChatMessage.Text
    print(Player.Name.." sent: "..Message)
end)

I feel like they should deprecate Player.Chatted if they are no longer going to support it to avoid confusion, but thanks for posting the link.

6 Likes