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!
✓ ANSWER ACCEPTED
how would I detect if the player’s account is 10 days old or more?
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)
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
thanks!