I need a script help kick player under 30 days since they sign up in order to prevent scammer and Bots. Just like how Steve's One Piece did in the game>
✓ ANSWER ACCEPTED
Kick player under 30 days since sign up?
2 answers
✓ Accepted answer
put this in a server script:
local MIN_ACCOUNT_AGE = 30;
game.Players.PlayerAdded:Connect(function(player)
if(player.AccountAge < MIN_ACCOUNT_AGE) then
player:Kick()
end
end)
2 comments
0
Server script = serverscriptservice?
0
a server script is a script that runs on the server.. a LocalScript runs on the players computer
Put this in a Local Script:
if game.Players.LocalPlayer.AccountAge < 30 then
game.Players.LocalPlayer:Kick('Accout too young!')
end
3 comments
0
won't work in local script
0
you have to put it in starter gui
0
Can work in local script but it's better to do it on server
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
Sorry this isn't a request site, for scripts. At least provide something. So we then know how help. ;)
player.AccountAge
https://developer.roblox.com/en-us/api-reference/property/Player/AccountAge