Question is in the title. Its for a global chat system.
literally NEVER worked with age groups before, probably something like textchatservice:GetChatGroupsAsync() on both servers, and send the result to both servers?
you can try messaging service.. like how they do admin abuse
probably PolicyService + MessagingService
I think the results are not the same between servers. I’ll test again when i have access to my pc.
Adding onto TOG’s and Sunny’s ideas, how about this:
- When a message is sent, it’s sent over MessageService. The payload should include the message, AND the user’s age group.
- ^ Once received on the target server(s), RemoteEvents are fired to each of the clients
- Finally, when a client receives the message, the client’s age is checked and compared with that of the message payload. If it’s within the range, show. If not, discard.
You can also do the age checking on the server if you want too, at the marked point (^), and selectively send the messages to the eligible clients. A good idea would be to also pass the UserID into the payload too of the sender, so you can perform more actions (like checking if they’re a trusted connection to send the message to them regardless of age group)
I believe I also have a picture of the age groups here, but it’s a bit old so do double check:
edit: users under 13 can also chat freely with trusted friends as per a new announcement (yes - no more ‘connections’)
Hope that helps. c:
from what i know, there is no official way to know people’s age group, but to say the least you can check if people can chat with each other using TextChatService.
Like this
TextChatService:CanUsersChatAsync(FromUserId,ToUserId)
-- returns a boolean
P.S this can only be called from serverside scripts.
I’m planning to create my own chat . Of course, I’ll use all the APIs as described in the documentation. But here’s my question: I’m from Russia, and my chat is disabled due to regional restrictions. Will I be able to use my own chat? And will other people with regional restrictions be able to use it? I’d also like to clarify something about age groups. I’m 21 years old. If, for example, a 14-year-old boy writes in the chat, how should that message appear to me? Or will it be hidden? I have a lot of questions about my own chat that I’d like to get answers to. I’m worried that my game and account might get banned if I do something wrong.
Actually, you can’t use AreAdsAllowed to determine if a User is 13+. Roblox doesn’t endorse this.
I have a post here where I once tried to use the same mechanism to verify a player was 13+ to use social features (I ended up making the entire game 13+ though): Does 'Chatting to AI' count as 'another user?' and If yes, Can I have an optional opt-in system? - #7 by Caelestene
Different use, same technicals though.
Just weighing in agreeing with ItsBloxy that this is not sanctioned use of the AreAdsAllowed policy. The AreAdsAllowed policy is meant for ads and is subject to change any time the ads policy is updated.
