How to get the preview image of an avatar item

How can I get this image to display on an ImageLabel?
I can, for some reason, only get the template to show.
Schermafbeelding 2021-12-23 132242

I don’t think it would be possible like directly but you could take a picture of it with a transparent background and then just upload that as an image.

I think it should be possible (I’ve seen similar systems), I just have no idea how, otherwise I’d have to upload an incredible amount of decals.

Well another way you could do it is via a camra so basicly when the user do what ever u want it to do change the camra view to the model and just change the shirt id or whatever

try using viewportframes its like 3d frame

You can use Players:GetUserThumbnailAsync

local UserId = 1
local Type = Enum.ThumbnailType.AvatarThumbnail
local Size = Enum.ThumbnailSize.Size420x420

--Gets the full avatar thumbnail of the Roblox account
local Thumbnail = Players:GetUserThumbnailAsync(UserId, Type, Size)

ImageLabel.Image = Thumbnail

Do you think this was made with viewports?
Schermafbeelding 2021-12-23 143920

for me,it does but im not sure cause im not experienced on uis

local Size = 180
local AssetID = 120756377

ImageLabel.Image = "https://www.roblox.com/asset-thumbnail/image?assetId="..AssetID.."&width="..Size.."&height="..Size.."&format=png"

This works for accessories but not for clothing. Any idea how I can fix that?


It works for everything.

Can you send me a screenshot with your problem?

Schermafbeelding 2021-12-23 150523
It shows the template.

Go to the catalog, find your item and copy it’s id. It works for me.

Yeah, it works now I had the wrong ID I guess.

1 Like