Implement direct Messaging

Hi there, how can I implement direct messaging between players (doesn’t matter if they don’t in the same server)? Is there any service for that because I found out custom dm Systems are against Roblox’s TOS.

Check out TextChatService!
https://create.roblox.com/docs/reference/engine/classes/TextChatService

There is API for checking whether two players can directly message each other according to their privacy settings / age group.
https://create.roblox.com/docs/reference/engine/classes/TextChatService#CanUsersDirectChatAsync

But is it possible to implement this system with a custom ui for direct messaging?

I’ve not created a direct messaging system before, only custom global chats, but I imagine it’s very much possible. You just need to ensure that all chat messages are being passed through TextChatService so that they can be appropriately moderated if needed.

You’ll be using TextChannel instances under the TextChatService instance itself. For direct messaging you could dynamically create new TextChannels on the fly and register the two specific players to it so they can send each other messages directly through the specific channel.