How to find the player's actual age?

I want to find the player’s actual age, so if the player is 13 years or older then he can see certain stuff in-game, so if I didn’t have that restriction then a 7 year old would be able to see gore.

Thanks!

4 Likes

You simply can’t do this.

A hacky method is to try to use the filtering system to filter a term that U13 players can’t see (e.g. C7RN) and if it shows up in hashtags it either indicates a filter error or an under 13 player. (But of course this wouldn’t work if the filter was having issues, it’d just show hashtags should the filter be erroring)

afaik you cannot reference core GUIs, so you couldn’t check coregui to see what the age text label says.

6 Likes

I think this is against the rules as you will be using a users private infomtion. To expand on what @ElliottLMz said, try to avoid using gore or make an in game setting so that users can turn off gore if they want to.

If want to you could make a feature request for a feature that can check if a user is under or over the age of 13.

3 Likes

Feature requests about a user’s gender were denied as it breaches child safety rules, I believe age will also not be permitted.

At RDC, Roblox announced that they are working on a “game age restriction” feature which would let them make rules less tight overall.

@OP: You could make two versions of your game once this feature is released. Have them essentially the same but a switch that turns on/off gore.

1 Like

Chat:CanUserChatAsync(UserId), but of course this doesn’t tell you if they’re 13+ or not, just tells you that their chat may have been disabled due to parental controls. Then again you have to consider that they may have just disabled their chat (like me), because they don’t want to talk to people lol.

Alternatively, have gore off by default, and add a toggle in a settings menu to turn it on.

2 Likes

Woah, privacy intrusions!

Alternative
As most people above have mentioned, Roblox currently has that indicator of “<13” or “13+”, which we cannot read from scripting. Perhaps you should set the default values carefully to the right audience first. Otherwise, disable the feature until you can actually read the player’s age range.

A feature request might be great for controlling the settings a little more to the audience.

7 Likes

You can’t do this without somehow accessing the CoreScripts (which has a function named GetUnder13).

You can try a hacky way to figure this out through the censor system (as referenced here).

You can’t do this and you shouldn’t do this. It is an absolutely terrible idea to base your game features off of a setting that you don’t have the permission to access. Find another way to filter this out for your game, such as a simple gore toggle. Most games already do this; no reason why you shouldn’t either.

Two examples I can think of doing this:

  • Phantom Forces: Blood toggle
  • Those Who Remain: Decapitations, blood, …
3 Likes

All I wanted was either >13 or 13>, I didn’t want the exact age.

4 Likes