Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

How to show a Roblox players account age in a text label?

Asked by 4 years ago

I am interested as to how to display a local players roblox account age on a text label? I am confused as to how to do so. I inserted a local script into the text label. Here is what I wrote thus far:

script.Parent.Text = game.Players.LocalPlayer------What do I do next?

Thanks, bulder251

0
This feels like a request more than a question. Cynical_Innovation 595 — 4y
0
same badimo3456p 114 — 4y
0
Oh, thanks guys! I have already solved it myself :) bulder251 26 — 4y

1 answer

Log in to vote
2
Answered by 4 years ago

Next time, you should do research on your question, https://developer.roblox.com/en-us/api-reference/property/Player/AccountAge

You can get the player's account age with;

Player.AccountAge -- an integer

In your case, you can do;

script.Parent.Text = game.Players.LocalPlayer.AccountAge
Ad

Answer this question