Examples

Some useful examples using rolib

A list of some examples using rolib

Using class UserName(robloxName)

import rolib

#using the UserName class to get other user related stuff

def main():
    user=rolib.UserName('ItsArtemiz')
    data = user.get_user_by_name()
    print(data) #prints basic user info
    print() #just to seperate the two outputs
    userId = data['userId'] #getting the user's Id
    
    newUser=rolib.User(userId)
    print(newUser.get_user_gamepasses()) #getting the user's gamepasses

main()

Last updated

Was this helpful?