Skip to content

Instantly share code, notes, and snippets.

@Aeplexi
Last active March 21, 2024 01:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Aeplexi/54d0f57f81631712892a1bbe8f09558e to your computer and use it in GitHub Desktop.
Save Aeplexi/54d0f57f81631712892a1bbe8f09558e to your computer and use it in GitHub Desktop.
R6 Original Pose Replication
// this is for anyone who edited their profile picture and want to return the r6 as close as possible back to the OG pose.
$.ajax({
method: "POST",
url: "https://avatar.roblox.com/v1/avatar/thumbnail-customization",
contentType: "application/json",
data: JSON.stringify({
"camera": {
// Ranges are inclusive.
"distanceScale": 1, // 0.5 to 4
"fieldOfViewDeg": 28.750661811816123, // 15 to 45
"yRotDeg": 24.0 // -60 to 60
},
"emoteAssetId": 0, // emote asset id
// idleAnimationAssetId used to exist here, it has since been removed.
"thumbnailType": 2 // 1 = Closeup (headshot), 2 = FullBody (bodyshot). Closeup and FullBody can have different configurations.
})
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment