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

How to get shirt template id from asset id?

Asked by 4 years ago
Edited by JesseSong 4 years ago

Please encode Lua code in the Lua block code tag (look for the Lua icon in the editor).

I'm trying to make a textBox in which the players can put in the shirt/pant's asset id and it goes on their character, but i can't get it to work because it required the shirt template id. Does anybody know how to get that through a script?? This is the error message:

23:08:55.471 - Image "https://assetdelivery.roblox.com/v1/asset?id=TextBox" failed to load in "Workspace.ScaredWalkerr.Humanoid.Clothes": Request failed

This is my script:

enterButton.MouseButton1Click:Connect(function()
        char.Shirt.ShirtTemplate = "rbxassetid://"..textBox.Text --the assetId the player inserts
end)
0
use InsertService:LoadAsset(assetId) which will create a model with the asset in the assetId. Also, ShirtIds are different to Shirt Template Ids ChristianTRPOC 64 — 4y

Answer this question