Skip to content
This repository was archived by the owner on Apr 4, 2021. It is now read-only.
/ roblox-scripts Public archive

Latest commit

 

History

History
37 lines (25 loc) · 1.72 KB

ThumbnailAPI.md

File metadata and controls

37 lines (25 loc) · 1.72 KB

Thumbnail API endpoints

Update: Roblox has just announced that they will do some changes to these endpoints. Until further notice, these endpoints will work properly inside of scripts. However, you can't use them for in-game images anymore. Please use the rbxthumb protocol instead for those.

Some scripts in /roblox-scripts use the Roblox web API to provide an avatar thumbnail of players.
Good news: you can customize what type of thumbnail you want to use. Here you can see what thumbnail API endpoints you can use. You can also edit the size, but I'd recommend you to leave it as it is in the original script.

Full avatar - https://www.roblox.com/Thumbs/Avatar.ashx?userid=USERID&width=SIZE&height=SIZE

Example: full avatar

Bust - https://www.roblox.com/bust-thumbnail/image?userId=USERID&width=SIZE&height=SIZE

Example: bust

Headshot - https://www.roblox.com/headshot-thumbnail/image?userId=USERID&width=SIZE&height=SIZE

Example: headshot

Replace the USERID part with the user ID. In the scripts of me, we will put ..plr.UserId.. on that place (might be ..player.UserId.. or anything else on that place as well).

In case you want to change the size of the thumbnail, this are the sizes you can use:

  • 48x48
  • 50x50
  • 60x60
  • 75x75
  • 100x100
  • 110x110
  • 150x150
  • 180x180
  • 250x250
  • 352x352 (recommended for Discord webhook)
  • 420x420
  • 720x720

In case you need more help, contact me though Discord (Mees#2216).