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