Help: Shirt Preview GUI

How can I change the image of imageButton
This script show the template of the shirt not shirt preview:

local replicatedStorage = game:GetService("ReplicatedStorage")
local Marketplace = game:GetService("MarketplaceService")
local customizationFolder = replicatedStorage.Customization
local shirtsFolder = customizationFolder.Shirts
local shirtsFrame = script.Parent

local changeFaceEvent = replicatedStorage.ChangeFace

local template = script.Template

for p,shirtvalue in pairs(shirtsFolder:GetChildren()) do
	if shirtvalue:IsA("IntValue") then
		local ProductInfo = Marketplace:GetProductInfo(shirtvalue.Name)
		local templateClone = template:Clone()
		templateClone.Parent = shirtsFrame
		templateClone.Name = shirtvalue.Name
		templateClone.Image = "https://www.roblox.com/asset-thumbnail/image?assetId="..shirtvalue.Name.."&width=420&height=420&format=png"
	end
end

Screenshot:
image

I didn’t found any solution right now…

you want it to show the template (what is in your screenshot right now) or some avatar wearing it?

I want to make the imagebutton show a preview like this:
image

use a viewport gui
place an r6 rig inside the viewport gui
line up the camera so it looks right
add a shirt (its an object called shirt) to the r6 rig
changed the id of the shirt to the id of the template (same string you are using the image label rn)

No It’s a stupid idea and harder

@bIorbee does have a good idea, as i don’t think its possible to accomplish your goal without it.

(also please don’t be rude to users trying to help you.)

It’s a good idea but more complicated than my way
Here is my way to get the thumbnail of any asset:

local shirtimage = "rbxthumb://type=Asset&id="..shirtvalue.ID.Value.."&w=150&h=15

image

I didn’t know rbxthumb could do that, very well then.

I not rude but u think I rude.

i was just saying the way you said it came off as rude.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.