Skip to content

Instantly share code, notes, and snippets.

@Aeplexi
Last active April 30, 2024 21:04
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Aeplexi/92036446d4bb4b502a4a2fca576e38fe to your computer and use it in GitHub Desktop.
Save Aeplexi/92036446d4bb4b502a4a2fca576e38fe to your computer and use it in GitHub Desktop.
Old Headshot
$.ajax({
method: "POST",
url: "https://avatar.roblox.com/v1/avatar/thumbnail-customization",
contentType: "application/json",
data: JSON.stringify({
"camera": {
// Ranges are inclusive.
"distanceScale": 1.15, // 0.5 to 4
"fieldOfViewDeg": 28.797294821013363, // 15 to 45
"xRotDeg": 0, // -20 to 20
"yRotDeg": -13.0 // -60 to 60
},
"emoteAssetId": 0, // emote asset id
// idleAnimationAssetId used to exist here, it has since been removed.
"thumbnailType": 1 // 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