I am trying to analyze the title/name and description of the player’s shirt. But, while testing, I can only see the clothing template url/id of the player’s shirt. I need the web id of the player’s shirt so I can view the details of the clothing.
Go to roblox studio, find some random NPC with clothes on, paste the shirt url onto the shirt of the NPC, press enter, and the ID will be different from the one you pasted in, copy that new ID, then replace the old ID on the url, and press enter.
There’s no way to convert a shirt template to a website asset id. I did go through the Inspect and Buy (Examine) CoreScripts to try and understand how it was displaying the character’s individual assets as purchasable items but most of these are derived from the HumanoidDescription.
There are two ways you can handle this. The best way is to use a HumanoidDescription if you need to apply assets to a character. You’ll only be working with the website id in this case and the engine will take care of rendering it onto characters for you. The other method is to manually store both the asset id and the template id in a place where you can reference it later.
If you go with the HumanoidDescription method and it conflicts with your own set up of your mannequins/avatars/whatever then convert as much of the customisation as you can to the HumanoidDescription object, apply it first then apply any other assets you want afterward. You need to use the description first because it’s authoritative of the character’s appearance (clears unassociated assets off the character and then applies what the description specifies).
InspectAndBuy if you want to scroll through the avatar inspect menu. It’s a Roact-based feature so there’s a few hoops that you need to jump through to find some things especially if you’re not familiar with Roact (which I’m not, so it took a decent amount of time to find the source for fetching assets).