Hello! Am Making a roblox game and I want to try to find the player creation account date. I check devforum and couldnt find any solutions. Also want to add it in a textlabel.
Script:
elseif TextLabel.Text == "Are you being honest?" then
YesButton.Visible = false
NoButton.Visible = false
txtButton.Modal = false
screenText("Your account was made "...game.Players.LocalPlayer.AccountAge..".are you having fun here?")
wait(1)
txtButton.Modal = true
YesButton.Visible = true
NoButton.Visible = true
On the top of my head I can’t think of a direct way of doing this from just inside of Roblox alone however you have two options on how you can do it (one in studio only but more complex and the other uses the Roblox web API):
Use this endpoint Swagger UI (will need to use some type of proxy cuz Roblox don’t allow direct requests to there internal API’s in game servers)
You could use the player account age that the player instance has however the issue with that is it gives it in days so you would probs need to convert it.