Load shirts and pants using a textbox didnt work

Hello!
currently im making a gang creation system which requires a gangname, gang description, gang shirt id, and gang pants

Both of the gangname and gang description are working, except the shirt and pants
I’ve take a look at the forum and they said to find a texture id which I don’t know how to do it

It requires a command bar or plugins which I currently dont wanna do those since its a textbox.

I’ll explain more in the replies if it can help to solve this Topic.

Thanks for reading! :slight_smile:

You can use ‘’’:GetPropertyChangeSignal(textpropertyhere)’’’ to detect did the player inputted. Then create a new shirt or pants object and edit the ID property. After that, parent it to the player’s character. Btw, the ID property format should be: “https://rbxassetid://clothingassetidhere”

1 Like

It doesnt work :frowning:

function ReturnAssestId(id)

local Asset = game:GetService("MarketplaceService"):GetProductInfo(id)

local results = "rbxassetid://"..Asset.AssetId

return results

end

This is a function i used to convert id to texture

Try adding https://rbxassetid://id

1 Like

Still not working :frowning: I dont know why

Try applying with the asset id with no formats.

1 Like
function ReturnAssestId(id)

local Asset = game:GetService("MarketplaceService"):GetProductInfo(id)

print(Asset.Name)

--local results = "https://rbxassetid://"..id--Asset.AssetId

local results = Asset.AssetId

return results

end

This doesn’t work either :frowning:

Is the asset ID paseed in the function valid?

1 Like
 ROBLOX Jacket  -  Client - LocalScript:3
 Black Jeans with White Shoes  -  Client - LocalScript:3

Yes it does print out this

1 Like

Update: I found this topic,

which have this following sentence

and follow with the script. It work completely ok! If you have a same problem as me, go check the topic

WARNING
It doesnt work in localscripts