RbxProxy
  • Introduction
    • Installation
    • Introduction to Promises
    • Introduction to Pages
  • Reference
    • API Reference
      • Client
      • Avatar
      • Friends
      • Game
      • Group
      • User
Powered by GitBook
On this page
  • getOutfits
  • getAvatarInfo
  1. Reference
  2. API Reference

Avatar

avatars are cool yk

PreviousClientNextFriends

Last updated 3 years ago

This page is about the "avatar" functions that the proxy provides. The page below introduces you to "promises" which is what is used to handle success and errors with the API.

getOutfits

This method does not require authorization!

This function finds the outfits of the specified user and can be loaded using

Sample code: (provides the outfits from the Roblox profile)

client.avatar:getOutfits(1):andThen(function(response)
    print(response)
end):catch(warn)

Arguments:

Type
Name

integer

userId

Returns: (this is an example of a successful return from the code above)

{
    {
        ["id"] = 19461896,
        ["isEditable"] = true,
        ["name"] = "Roblox"
    }
}

getAvatarInfo

This method does not require authorization!

This method returns current avatar information on the specified user (it also includes emotes, animations, and asset information)

Sample code: (provides the avatar from the Roblox profile)

client.avatar:getAvatarInfo(1):andThen(function(response)
    print(response)
end):catch(warn)

Arguments:

Type
Name

integer

userId

Returns: {}

Introduction to Promises
this function Roblox provides.