Is it possible to detect a players age?

Hey, I’m Farmboy014 and I’m a fairly beginning to intermediate scripter/builder. I was wondering if it was possible to detect if a players account is 13+ using a script and give them a random ui every so often. I had an idea for my game to have some educational things added, but was wondering if I can give players over 13 different GUI’s so a grade 6 is not getting grade 8 education. Also this is my first DevForum post so let me know if I have any errors! - Farmboy014

1 Like

No, It’s not possible to detect a player’s age using scripts, that would be against COPPA. There are some hacky ways you could try but it could lead to false positives and it wouldn’t be very accurate.

2 Likes

Ok, thank you for the help, I will try find a different way to do my idea.

2 Likes

You can get the player’s ACCOUNT age, but not the real life age.

1 Like

There is a way that doesn’t violate TOS.

You can use PolicyService to do this, mainly use to display external links like discord to 13+ users, and not <13.

However, I would think (my opinion) it IS against the TOS to log peoples 13+ status.

correct me if im wrong

1 Like

Oh ok, I guess I was not specific enough.

1 Like

By account age he meant how long ago since their account was created, so you won’t know if they’re really under 13 or not. Unless this is what you were asking for.

local players = game:GetService("Players")
local player = players.LocalPlayer
print(player.AccountAge)

https://developer.roblox.com/en-us/api-reference/property/Player/AccountAge

3 Likes