Skip to content

Instantly share code, notes, and snippets.

@NobleDraconian
Created August 18, 2022 23:56
Show Gist options
  • Save NobleDraconian/8a1a1d816203b1fa6805ae940a7735af to your computer and use it in GitHub Desktop.
Save NobleDraconian/8a1a1d816203b1fa6805ae940a7735af to your computer and use it in GitHub Desktop.
Roblox - avatar emote pose
// 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.
})
})
@Pastrymale
Copy link

Yes I am.

@NobleDraconian
Copy link
Author

@Pastrymale Are you trying to equip an emote you don't own? You have to own the emote.

@chromeviolence
Copy link

Why does this say “unsafe-eval not allowed”

@sudormrfslash
Copy link

yo that actually worked thanks lol

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment