game.Players.PlayerAdded:Connect(function(plr)
if plr.AccountAge == -2000 then
plr:Kick()
end
end)
✓ ANSWER ACCEPTED
How do I make an age limit for a game? Where do I put the script?
1 answer
✓ Accepted answer
the following code says: if the player is over 2000 days old, kick them put it in a normal script in the workspace
game.Players.PlayerAdded:Connect(function(plr)
if plr.AccountAge >= 2000 then
plr:Kick()
end
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
put it somewhere random
uh... regular script i guess..?