Avatar

avatars are cool yk

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.

Introduction to Promises

getOutfits

This function finds the outfits of the specified user and can be loaded using this function Roblox provides.

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 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: {}

Last updated