Advertisement
Prephy

Emote code

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