Hi, the only thing that I want to know is how can I make a script that will allow players to join the game only if their Roblox account exists for 28 days or more? Help pls!
Use AccountAge
local Players = game:GetService("Players")
Players.PlayerAdded:Connect(function(Player)
if Player.AccountAge <= 28 then
Player:Kick("no")
end
end)
1 Like
Thanks, but is that function works only in days?
yes, it shows how many days ago the account was created
Alr, thank you! BTW, if I’ll try to print(Player.AccountAge), it will show me how my account exists in days?
yaaa it definitely will!!!
my account was precisely created 767 days ago
W, thanks for the information.
My account exists for 1423 days