Print A Player's Account Age

Hello, I am a newer scripter, been developing for many years… But, I am still getting the hang of scripting. I have searched the forum for answers to my question and can’t seem to find any. Been trying for ages, and nothing seems to work, any help is appreciated!

Script Info:

I am trying to make a Textlabel display a player’s account age, how should I go about doing this? Like, how long they have been playing roblox for, on that account.

Any help is appreciated, thanks! If this has already been answered, then please link me the post!

1 Like

Use this api, https://users.roblox.com/v1/users/1.

For more information about it, https://users.roblox.com/docs#!/Users/get_v1_users_userId.

You will need to use a proxy to http get it from roblox.

1 Like

You can also use Player.AccountAge to retrieve how many days have passed since a user joined Roblox.

Honestly this is very straight forward. You should already know how to do this, and being new isn’t an excuse.

A player.AccountAge property exists, which is a number representing how many days passed since he first joined roblox. You basically tostring, because it’s a number and a textbox’s Text property needs to be set to a string.

local textbox = --wherever it is
local player = game.Players.LocalPlayer --the local player, the current player

textbox.Text = tostring(player.AccountAge)
7 Likes

Thank you, so much! This post helped a lot!

1 Like