Advertisement
Guest User

Roblox Profile emote

a guest
Aug 26th, 2022
3,695
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.88 KB | None | 0 0
  1. // ! VIEW YOUR CURRENT AVATAR THUMBNAIL CUSTOMIZATIONS: https://avatar.roblox.com/v1/avatar/thumbnail-customizations
  2.  
  3. // ! This script is using the API of an intentional feature, it's not a bug. Roblox may disable the ability for the thumbnail generator to use thumbnail customizations **at any time**.
  4. // ! The API was enabled two times before the Profile Picture Editor in the app was enabled; see: https://twitter.com/RobloxTrackers/status/1512460262607048715
  5. // ! You probably would only get terminated if you get caught using the feature inappropriately.
  6.  
  7. /*
  8. !! After your first time of setting a thumbnail configuration, the thumbnail of that type can not go back to how it was originally.
  9. !! (i.e.: using Idle Animations, camera position). It can only be temporarily reverted if Roblox disables this feature again.
  10. */
  11.  
  12. // doing ajax because easy csrf handling w/their middleware lol
  13. $.ajax({
  14. method: "POST",
  15. url: "https://avatar.roblox.com/v1/avatar/thumbnail-customization",
  16. contentType: "application/json",
  17. data: JSON.stringify({
  18. "camera": {
  19. // Ranges are inclusive.
  20. "distanceScale": 2, // 0.5 to 4 (Closeup) 1 (FullBody) - Camera distance scale from the avatar
  21. "fieldOfViewDeg": 30, // 15 to 45 - Camera Field Of View (FOV) in degrees, slight effect
  22. // xRotDeg used to exist here.
  23. "yRotDeg": 0 // -60 to 60 - Camera Y rotation in degrees
  24. },
  25. "emoteAssetId": 0, /* The assetId of an emote you own. 0 for no emote.
  26. * example: 3696763549 in https://www.roblox.com/catalog/3696763549/Heisman-Pose
  27. */
  28. // idleAnimationAssetId used to exist here, it has since been removed.
  29. "thumbnailType": 1 /* The thumbnailType
  30. * 1 = Closeup (headshot)
  31. * 2 = FullBody (bodyshot)
  32.  
  33. Closeup and Fullbody can have separate configurations.
  34. */
  35. })
  36. })
  37. // Logs `{success:true}` if success or text if failed
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement