Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $.ajax({
- method: "POST",
- url: "https://avatar.roblox.com/v1/avatar/thumbnail-customization",
- contentType: "application/json",
- data: JSON.stringify({
- "camera": {
- // Ranges are inclusive.
- "distanceScale": 1.25, // 0.5 to 4 (Closeup) 1 (FullBody) - Camera distance scale from the avatar
- "fieldOfViewDeg": 45, // 15 to 45 - Camera Field Of View (FOV) in degrees, slight effect
- // xRotDeg used to exist here.
- "yRotDeg": 28.65 // -60 to 60 - Camera Y rotation in degrees
- },
- "emoteAssetId": 9528291779, /* The assetId of an emote you own. 0 for no emote.
- * example: 9528286240 in https://www.roblox.com/catalog/3696763549/Heisman-Pose
- */
- // idleAnimationAssetId used to exist here, it has since been removed.
- "thumbnailType": 1 /* The thumbnailType
- * 1 = Closeup (headshot)
- * 2 = FullBody (bodyshot)
- Closeup and Fullbody can have separate configurations.
- */
- })
- })
- // Logs `{success:true}` if success or text if failed
- .then(data => console.log(data)).fail(error => console.log(error.responseText));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement