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

how to get the name of a hat from the catalog ?

this will get the username but i want the name of the item from the catalog "1029025" -The Classic ROBLOX Fedora-

function UsernameFromID(ID)
	if type(ID) ~= "number" then
		return
	end
	local sets = game:service("InsertService"):GetUserSets(ID)
	for k, v in next, sets do
		if v.Name == "My Models" then
			return v.CreatorName
		end
	end
end

print(UsernameFromID(1029025))

1 answer

✓ Accepted answer

Implement this somehow in your code:

local Asset = game:GetService("MarketplaceService"):GetProductInfo(1029025)
print(Asset.Name)

1 comment

0

thanks

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