Hello, I am creating a place where you can link your discord account with your roblox account; obviously without asking for credentials, just by entering your discord name and our bot will send you a random code if you are on the discord server. Then you need to enter this code in the roblox game.
I do that to check if users are in our discord or giving users from our discord small rewards ingame.
But I also want to use this to ban users under 13, since those violate the Discord ToS and can risk the server deletion and getting my account banned if I know that they are under 13 but don’t ban them. I could just check if the roblox account is <13 and ban them instantly from the discord server. This would not get rid of all <13 users but those that entered their real birth date in roblox.
You could use the Function game:GetService(“PolicyService”):GetPolicyInfoForPlayerAsync(player)
When I put this in the print Function it prints out this: {
[“AllowedExternalLinkReferences”] = {…}, [“AreAdsAllowed”] = true,
[“ArePaidRandomItemsRestricted”] = false,
[“IsPaidItemTradingAllowed”] = true,
[“IsSubjectToChinaPolicies”] = false
}
I think you could check if the ads are enabled for the player since Roblox recently restricted access to advertisements for those under 13 years!