What am i doing wrong?
I have bought clothes in the catalog and I did the programming in roblox studio so that the character wears the clothes but it does not work, what is wrong?
Hey, I went looking into this as from experience, I’ve seen many who’ve struggled with inserting clothing in games.
So I went ahead and made this little function for you and you won’t even have to worry about what template to use or anything.
function GetShirtTemplate(ShirtLink)
local assetId = tonumber(string.match(ShirtLink, "%d+") or 0) -- Extract the number
return game:GetService("InsertService"):LoadAsset(assetId).Shirt.ShirtTemplate
end