Skip to content

Instantly share code, notes, and snippets.

@NobleDraconian
Created August 18, 2022 23:56
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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.
})
})
@BossKingLot
Copy link

it's not working
:(

@ha-rriz
Copy link

ha-rriz commented Aug 21, 2022

you need to put this in your inspect element console

@NobleDraconian
Copy link
Author

@BossKingLot You need to put it in your browser's dev console! This is usually opened by pressing the F12 key.

@Pastrymale
Copy link

I put it in the console but it just gives me a wave of warnings and errors and nothing ends up changing.

@NobleDraconian
Copy link
Author

@Pastrymale Are you doing this while on your profile or avatar page while signed into Roblox?

@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