AccountAge (Property)
From Legacy Roblox Wiki
Jump to navigationJump to search
AccountAge | |
Type | int |
Description | Holds the number of days since the Player's account was made. |
Member of | Player |
Example
game.Players.PlayerAdded:connect(function(player)
local years = math.floor(player.AccountAge / 365.2425)
local days = math.floor(player.AccountAge % 365.2425)
print(player.Name .. " has played Roblox for " .. years .. " years and " .. days .. " days!")
end)