Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

how would I detect if the player’s account is 10 days old or more?

i want to make a script that if you’re roblox account is under 10 days old, you get kicked. Else if you’re account is above 10 days you may play the game. I want to make this since I don’t want people to make multiple alt accounts then play my game. How would I do this? I’m sorry if this is too much, thanks!

1 answer

✓ Accepted answer

You can use Player.AccountAge. Try putting this Script in ServerScriptService and it should work.

game:GetService("Players").PlayerAdded:Connect(function(Player)
      if Player.AccountAge < 10 then Player:Kick("Account age is under 10 days") end
end)

1 comment

0

thanks!

This discussion is preserved as it was. New answers, comments, and votes are closed.