User
getLastOnline
This method does not require authorization.
This method gives you the last online date of a specified user.
Example code: (Gets Roblox's last online date)
client.user:getLastOnline(1):andThen(function(date)
print(date);
end):catch(warn)Arguments:
integer
userId
Returns:
<array>, example:
{
["IsOnline"] = false,
["LastLocation"] = "Offline",
["LastOnline"] = "2006-02-27T15:06:40.3-06:00",
["ParsedLastOnline"] = {
["day"] = "27",
["hour"] = "15",
["minute"] = "06",
["month"] = "02",
["second"] = "40",
["year"] = "2006"
},
["PresenceType"] = 0,
["Visibility"] = 0,
["VisitorId"] = 1
}getInformation
This method does not require authorization.
This method returns information found on a specified player's profile like their account creation date, description, ban status, display name, and username.
Sample code: (gets Roblox's info)
Arguments:
integer
userId
Returns:
<array>, example:
getPastUsernames
This method does not require authorization.
This method returns a page object representing the specified user's past usernames. If you do not know how to use pages, I'd recommend checking out the page below.
Introduction to PagesSample code: (getting my past usernames)
Arguments:
integer
userId
Returns: <page object>
searchUsers
This method does not require authorization.
This method returns a page object representing you searching for specified users, if you don't know how to use page objects check out the page below!
Introduction to PagesSample code: (Searching for Roblox)
Arguments:
string
search query
Returns: <page object>
Last updated