Created
August 18, 2022 23:56
-
-
Save NobleDraconian/8a1a1d816203b1fa6805ae940a7735af to your computer and use it in GitHub Desktop.
Roblox - avatar emote pose
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// doing ajax because easy csrf handling w/their middleware lol | |
$.ajax({ | |
method: "POST", | |
url: "https://avatar.roblox.com/v1/avatar/thumbnail-customization", | |
contentType: "application/json", | |
data: JSON.stringify({ | |
"camera": { | |
// Ranges are inclusive. | |
"distanceScale": 1, // 0.5 to 4 | |
"fieldOfViewDeg": 15, // 15 to 45 | |
"xRotDeg": 20, // -20 to 20 | |
"yRotDeg": -50 // -60 to 60 | |
}, | |
"emoteAssetId": 10147916560, // emote asset id | |
// these can both be 0 for no animation, but only 1 can be non-zero | |
"idleAnimationAssetId": 0, // idle animation asset id | |
"thumbnailType": 2 // 1 = Closeup (headshot), 2 = FullBody (bodyshot). Closeup and FullBody can have different configurations. | |
}) | |
}) |
Why does this say “unsafe-eval not allowed”
yo that actually worked thanks lol
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@Pastrymale Are you trying to equip an emote you don't own? You have to own the emote.