Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to detect shirt template ID given a shirt ID?

Asked by 4 years ago

Hey everyone! I want to make something where a player can enter the ID of a shirt they want to try on, and it puts it on their player. I know how to make most of this script, except for the part that gets the template ID from the shirt. Does anyone know how to do this? Thanks!

2 answers

Log in to vote
0
Answered by 4 years ago
1-- convert to template using a Decal
2local decal=Instance.new"Decal"
3decal.Texture="https://www.roblox.com/catalog"..shirtid
4local template=decal.Texture
Ad
Log in to vote
0
Answered by 4 years ago

Try adding this into a local script:

1id = "choose your id"
2game.Players.LocalPlayer.Shirt.ShirtTemplate = "rbxassetid://"..id

Answer this question