Age group filtering on my custom chat system

Hello developers,

I have implemented a player-to-player messaging system as well as a “Social” app that allows players to communicate with each other on the server. I now want to ensure compliance with age group regulations.

Is there any official Roblox API available to handle this?

2 Likes

Maybe try using this: https://create.roblox.com/docs/reference/engine/classes/PolicyService

Are you sure that PolicyService is sufficient for this by relying on the flags returned by GetPolicyInfoForPlayerAsync or is it not reliable for handling chat restrictions between players? I have some doubts…

The player-to-player messaging system will have to pass chat messages through TextChatService. This API automatically filters and handles age groups for you.

You can use TextChannels to create a player-to-player channel.

Could you provide more information on the “social” app such as a screenshot? Does it act like a global messaging app or is it in the form of posts? There is not enough information to determine if it is considered chatting or non-chatting

(Please attach a screenshot of the social app and the custom chat, it will make it easier for me to provide you the correct apis)

Yes, it’s a global messaging system for the “Social” feature, so it is indeed a chat

Pass the messages for the social app through a TextChannel and add users to the channel using TextChannel:AddUserAsync(Player). (Not adding a user to a textchannel will fail to send/receive any messages)

You can use TextChannel:SendAsync(Message) and TextChannel.MessageReceived(function(Message) on the client to send and receive the messages

As a side note, sending messages through the social app textchannel will make bubble chats pop up in the world if you have the default bubble chats enabled. The only way around this is to disable the default bubble chat and manually call TextChatService:DisplayBubble(PartOrCharacter, Message)

Alright, I should be able to manage with this, thanks! : )

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