The script checks if the word “youtube” will be filtered or not and determines if the player is older than the age of 13.
I think this script can be super useful if you want to:
・Only show Discord server link to 13+ players
・Restrict <13 players from joining your game because it has contents that may not be suitable for children
・secret weapon for 13+ players
・etc.
I’d like to get some feedback on this script, and also would like to ask if I can get in trouble for this due to privacy reasons
Thanks!
local function isUnderaged(plr: Player)
if table.find(game:GetService('PolicyService'):GetPolicyInfoForPlayerAsync(plr)["AllowedExternalLinkReferences"], 'Discord') then
return false
end
return true
end