How to get decal image from asset ID

How can I get the image of an asset so I can use it on a decal or imageLabel? Right now I am able to insert the hat but am unsure of how to go about getting the ID for the image because I tried using the original Id and nothing loads.

local InsertService = game:GetService("InsertService")
local assetId = 89615321
local Decal_Image = nil

local success, model = pcall(function()
	return InsertService:LoadAsset(assetId)
end)

if success and model then
	local asset = model:GetChildren()[1]
	if asset then
		asset.Parent = workspace
               --get decal image of hat to show what hat was just inserted on the tv
	end
	model:Destroy()
else
	warn("Failed to load asset:", assetId)
end
1 Like

The assetId is specific, what stops you from copypasting it in a decal, waiting for it to change, then take that url and put it in the script?

1 Like

Wouldn’t this be done using Thumbnail API?

4 Likes

code examples?

ㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ

1 Like

he probably has more ids not just one

2 Likes

still need help
ㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ

1 Like

try MarketplaceService:GetProductInfo(assetId).IconImageAssetId

1 Like