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
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)