I’m trying to find the asset ID from an accessory that the character spawns with through the client, and I’ve tried multiple different ways but none are working. I’ve tried things like humanoid:GetAccessories() and sorting through the “HatAccessories” in the humanoid, but neither worked for me. Games like Catalog Avatar Creator do this when you join the game, so I’m guessing its possible.
Basically I need to get the product info from a players avatar items.
I need this so I can get the asset cost, image, and name using :GetProductInfo().
What I have so far:
local player = game.Players.LocalPlayer
local char = player.Character
char.ChildAdded:Connect(function(acc)
if acc:IsA("Accessory") then
local itemID
if acc:FindFirstChild("Added") then
itemID = acc.Added.Value --Holds the item ID for when I create an accessory
else
end
end
end)