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

Get a texture from clothing ID?

Asked by
Abandion 118
5 years ago

I'm making a clothing stand that users can rent out. I cannot find a way to load the shirt's texture from a script. Any way around this?

1 answer

Log in to vote
1
Answered by
Abandion 118
5 years ago

This is what I had to do

    local shrt = game:GetService("InsertService"):LoadAsset(data.ShirtId)
    local shrtid = shrt.Shirt.ShirtTemplate
    shrt:Remove()
    local pnts = game:GetService("InsertService"):LoadAsset(data.PantsId)
    local pntsid = pnts.Pants.PantsTemplate
    pnts:Remove()
Ad

Answer this question