Alternative for Player.Chatted with TextChatService?

Not sure if Player.Chatted is getting deprecated as well, so I’m in a need of an alternative in that case. However, most of the TextChatService events are client-focused (unless I’m missing an eye out on something).

How would I make a server script (not client) that registers the message and the user once it’s sent through the regular chat?

local Players = game:GetService("Players")

Players.PlayerAdded:Connect(function(player)
	player.Chatted:Connect(print)
end)

Seems to be working just fine. It’s not marked as deprecated nor have I seen it been announced somewhere. Why do you need an “alternative” as this implies that you cannot use this with TextChatService?

Cause it doesn’t state anywhere if .Chatted is wired to the soon-to-be deprecated Legacy Chat system.

That’s why I need an alternative, unless someone knows this won’t be deprecated.

Emphasis that Roblox said they’re deprecating “LegacyChat”.

I don’t understand. Player.Chatted was made long before TextChatService existed and has worked for the legacy chat. It was designed for it. What exactly do you think will change with this event once legacy chat is removed?

If Chat.Chatted is going away, what wouldn’t make Player.Chatted go away as well?

Do you know if this code would be deprecated with the removal of Legacy Chat?

even if its deprecated, you will still be able to use it, won’t you?

bodyvelocity, for example, is deprecated, but i still use it quite often.

Chat is associated with the legacy chat service and is marked as deprecated. Player.Chatted isn’t and works just fine with TextChatService.

2 Likes