AccountAge (Property)

From Legacy Roblox Wiki
Revision as of 06:00, 27 April 2023 by Realjame (talk | contribs) (Text replacement - "</SyntaxHighlight>" to "</syntaxhighlight>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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)