Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Id grabber for catalog help?

I am trying to create a gui and if you type in the text box the clothing appear how should I attempt to do this.

2 comments

0

More: I tried to do it and when I type the code the shirt is blank

0

not a request site

1 answer

Shirts only appear if you use the Template ID, not the actual Shirt ID. Try using this function to create a shirt:

function CreateClothing(assetId)
	local url = "https://www.roblox.com/catalog/".. assetId
	local id = tonumber(string.match(url, "%d+") or 0) 
	local success, clothing = pcall(function() 
		return game:GetService("InsertService"):LoadAsset(id) 
	end)
	if success then 
		clothing.Parent = DefineCharacterHere
	end
end

This discussion is preserved as it was. New answers, comments, and votes are closed.