Created
February 16, 2024 15:18
-
-
Save MaximumADHD/95704bf8f0f47d1f4023d58f17ce66e9 to your computer and use it in GitHub Desktop.
JavaScript snippet to modify your Roblox profile picture outside the normal parameters.
This file contains hidden or 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
$.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 (Must be 1 for FullBody) | |
"fieldOfViewDeg": 45, // 15 to 45 | |
"yRotDeg": 0 // -60 to 60 | |
}, | |
// these can both be 0 for no animation, but only 1 can be non-zero | |
"idleAnimationAssetId": 0, // idle animation asset id | |
"emoteAssetId": 14024722653, // emote asset id | |
// 1 = Closeup (headshot), 2 = FullBody (bodyshot). | |
// Closeup and FullBody can have different configurations. | |
"thumbnailType": 1 | |
}) | |
}); | |
location.reload(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment