So since there exists no API for getting the join date (Not that I know of) I manually search for it on the website self, matching the string. I have no idea how to mark something “unkown”, like in google Roblox was founded in *, you use a * for searching something that is unkown or you don’t know.
I have no idea how to do this in lua any help?
Edit: I know the existance of player.AccountAge but I cannot get the age if the player isn’t in game, thereby I am using this method
My code:
local id = 1
local text = game:GetService("HttpService"):GetAsync("https://rprxy.xyz/users/" ..id.. "/profile")
print(text)
local tocut = "<p class=text-lead>*A symbol that marks that this is unkown*<li"
local cut = text:match(tocut)
print(cut)
1 Like
You can use (.+)
to match any set of characters, but because you know the specifics of what the format can be, it’d be easier to do:
(%d+)/(%d+)/(%d+)
.

1 Like
To add to this here is the page on the developers hub about string.match: Strings | Documentation - Roblox Creator Hub.
2 Likes
Since doing this from Roblox requires a proxy, and the format of the html might change without warning and break your code, I’d recommend using the Player.AccountAge
property instead as @JoeykiIIer suggested.
You can use the os
library to get a join date from this:
local today = os.time() -- current time in seconds
local joined = player.AccountAge * 86400 -- how long ago in seconds
local info = os.date("*t", today - joined)
print(info.year, info.month, info.day)
5 Likes