How to change the character's T-Shirt (ShirtGraphic) using an ID from the catalog?

I’m making a system where a player can paste the ID of a T-Shirt into a GUI element to change the T-Shirt graphic on their character. I’ve achieved this by telling the server to change the texture of the decal called “roblox” inside the character’s torso.
However, the decal doesn’t end up displaying anything. I found the reason to be a discrepancy between the asset ID and the ID that the decal uses to display its image (for example, “http://www.roblox.com/asset/?id=7657711723” wouldn’t work, and studio would turn it into “http://www.roblox.com/asset/?id=7657711713”). The IDs could differ by 10-49 from what i saw.
Is there any way I can either convert the catalog ID to a decal texture or apply the shirt any other way?
So far i have tried:

  • applying the ID itself (didnt work)
  • applying the ID in the “http://www.roblox.com/asset/?id=” format (works only with a converted ID)
  • changing the humanoid description of the character (threw an error and ended up not working)
  • ID conversion from a forum post i found (didnt work, ended up freezing studio every time i tried it)
  • using an image label instead (same problem, didnt do anything)
  • using a shirt graphic instance (same problem, the ID is different)

there is a shirt instance for players you can change its shirtTemplate property to do that
{9E46E878-A4CB-461D-B61F-698C956E474B}

{538935EE-CEA9-46F4-B1FE-AA8E839E3289}

okay so two things about this:

  • first of all that instance is used for shirts, not t-shirts/graphic shirts
  • secondly, the issue still persists whether it’s a shirt or shirt graphic instance
1 Like
1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.