Advertisement
tiaomafy

emoto yay

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