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 3 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 3 years ago
-- convert to template using a Decal 
local decal=Instance.new"Decal"
decal.Texture="https://www.roblox.com/catalog"..shirtid
local template=decal.Texture
Ad
Log in to vote
0
Answered by 3 years ago

Try adding this into a local script:

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

Answer this question