Skip to content

Instantly share code, notes, and snippets.

@Julli4n
Last active June 7, 2024 11:51
Show Gist options
  • Save Julli4n/13016b11e80109ba643ab9e90b431e02 to your computer and use it in GitHub Desktop.
Save Julli4n/13016b11e80109ba643ab9e90b431e02 to your computer and use it in GitHub Desktop.
ROBLOX
/*
!! The feature that uses this endpoint has recently started rolling out to users.
!! See `App > Avatar > Profile Picture Editor`
!!
!! You may continue using this script, the only advantage is being able to
!! customize FullBody and Closeup independently.
*/
// ! VIEW YOUR CURRENT AVATAR THUMBNAIL CUSTOMIZATIONS: https://avatar.roblox.com/v1/avatar/thumbnail-customizations
/*
!! After your first time of setting a thumbnail configuration, the thumbnail of that type can not go back to how it was originally.
!! (i.e.: using Idle Animations, camera position). It can only be temporarily reverted if Roblox disables this feature again.
*/
// 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": 2, // 0.5 to 4 (Closeup) 1 (FullBody) - Camera distance scale from the avatar
"fieldOfViewDeg": 30, // 15 to 45 - Camera Field Of View (FOV) in degrees, slight effect
// xRotDeg used to exist here.
"yRotDeg": 0 // -60 to 60 - Camera Y rotation in degrees
},
"emoteAssetId": 0, /* The assetId of an emote you own. 0 for no emote.
* example: 3696763549 in https://www.roblox.com/catalog/3696763549/Heisman-Pose
*/
// idleAnimationAssetId used to exist here, it has since been removed.
"thumbnailType": 1 /* The thumbnailType
* 1 = Closeup (headshot)
* 2 = FullBody (bodyshot)
Closeup and Fullbody can have separate configurations.
*/
})
}).then(data => console.log(data)).fail(error => alert(error.responseJSON.errors[0].message));
// Logs `{success:true}` if success or website alert if error.
// Revert your thumbnail to default, this is the same that the App uses, hopefully
for (let thumbnailType = 1; thumbnailType < 3; thumbnailType++) {
$.ajax({
method: "POST",
url: "https://avatar.roblox.com/v1/avatar/thumbnail-customization",
contentType: "application/json",
data: JSON.stringify({
camera: {
distanceScale: -1,
fieldOfViewDeg: 30,
yRotDeg: 0
},
emoteAssetId: 0,
thumbnailType,
})
})
}
@alimusi12344
Copy link

Here is the moment
image

@alimusi12344
Copy link

image

@alimusi12344
Copy link

and on the bright side, at least we can mess around with emotes and still revert back

Yeah, I can now die in peace knowing my avatar looks back to normal now.

@alimusi12344
Copy link

image
Comparing this to my other acc which did not had the profile picture changed

@ToolFlation
Copy link

What do we do with the Bring Back Classic Profile Pictires group? Will it serve as a legacy group?

@alimusi12344
Copy link

What do we do with the Bring Back Classic Profile Pictires group? Will it serve as a legacy group?

It was recently made so I have absolutely no idea lol. But I guess we could do that

@Calwing999
Copy link

image
gg guys. After nearly 2 years of waiting, we finally got our old angles back! VICTORY!!!

@Calwing999
Copy link

What do we do with the Bring Back Classic Profile Pictires group? Will it serve as a legacy group?

yeah probably

@Calwing999
Copy link

Prob wont update it anymore but Ill leave it up, made the pending role able to speak in the group wall

@ToolFlation
Copy link

alright then

@ToolFlation
Copy link

Thanks roblox for reverting our pfps you were too slow though.

@alimusi12344
Copy link

even if they were slow, atleast that is one time roblox listened to us

@ToolFlation
Copy link

Yeah

@ToolFlation
Copy link

ToolFlation commented May 8, 2024

This feature probably wouldn't exist if that devfourm post didn't so shout out to all of the guys on devfourm and especially everyone here on the github post. It couldn't have happened without you guys

@alimusi12344
Copy link

Now imagine someone is like "oh they added a revert button to emote" without ever knowing what happened here and dev forums, lol

@ToolFlation
Copy link

ToolFlation commented May 8, 2024

Yeah lol. Also its actually nice they replaced the done button with the revert one, it literally had no purpose anyways

@naserna
Copy link

naserna commented May 8, 2024

Its been mentioned on x rolimons .
Screenshot_20240507-232130

@ItsAchy
Copy link

ItsAchy commented May 8, 2024

Accept me into the group please

@robloxsantino2022
Copy link

Accept me into the group please

I don’t own the group I gave it to calwing

@robloxsantino2022
Copy link

I remember before they fixed pfp I had to come here every day to adjust my pfp. Now we can let this thread rest and as a mark of history. This day will never be forgotten.

@1234qwerty1qq
Copy link

OMG!!

@1234qwerty1qq
Copy link

i can rest in peace now.

@roguuskcsgui
Copy link

Previously there were "Back" and "Next" buttons, right?

@Calwing999
Copy link

Accept me into the group please

Im prob not gonna update it anymore but I made it so the pending roll can talk too

@Julli4n
Copy link
Author

Julli4n commented May 8, 2024

Added a file to revert your thumbnail customizations for those who don't want to use the app. (please use it for thumbnail customizations)

@robloxsantino2022
Copy link

robloxsantino2022 commented May 8, 2024

Added a file to revert your thumbnail customizations for those who don't want to use the app. (please use it for thumbnail customizations)

i tested it on an alt, and it works!

@elepopiy
Copy link

elepopiy commented May 8, 2024

abtnjıytkhrtudfhjkynrfhnb ık

looking good

@ToolFlation
Copy link

Previously there were "Back" and "Next" buttons, right?

pretty sure the revert button was the 'Done' button, which had no purpose whatsoever

@roguuskcsgui
Copy link

Previously there were "Back" and "Next" buttons, right?

pretty sure the revert button was the 'Done' button, which had no purpose whatsoever

oh yeah this is coming to my head now

@Seva1912
Copy link

Seva1912 commented May 9, 2024

Well guys... we did it! I want to thank everybody who has been an active user here throughout this long and exhausting journey. I still can't believe that we were actually able to get our voices heard. Thanks everybody, especially Calwing999 for bringing awareness to the issue via YouTube and robloxsantino2022 for creating the Roblox group. Thank you guys!!! As they say: Together we CAN make a difference. 👏👏👏

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