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?

1 Like
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?

1 Like

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

Player.Chatted doesn’t actually work just fine with the new TextChatService. It works fine on the server, but not on the client, on the client it actually behaves very weirdly, it only fires for players that are not LocalPlayer

There is this alternative:

However, I don’t think there is an alternative for the server, that provides the unfiltered text

EDIT: Since I wrote this, bugs have been fixed. However, Player.Chatted is likely to become deprecated in the future

3 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.