equip.MouseButton1Click:Connect(function()
local aid = string.match(image.Image, "%d+")
local asset = MarketplaceService:GetProductInfo(aid)
local atypeid = asset.AssetTypeId
print(aid)
print(atypeid)
print("=================================")
for c, d in pairs (a) do
print(d)
if aid == d then
print("enter")
if atypeid == 8 then
headi.Image = "https://www.roblox.com/asset-thumbnail/image?assetId=" .. aid .. "&width=420&height=420&format=png"
elseif atypeid == 43 then
necki.Image = "https://www.roblox.com/asset-thumbnail/image?assetId=" .. aid .. "&width=420&height=420&format=png"
elseif atypeid == 47 then
waisti.Image = "https://www.roblox.com/asset-thumbnail/image?assetId=" .. aid .. "&width=420&height=420&format=png"
elseif atypeid == 46 then
backi.Image = "https://www.roblox.com/asset-thumbnail/image?assetId=" .. aid .. "&width=420&height=420&format=png"
end
end
end
end)
https://pastebin.com/QSpwxuDD the first line is the value of aid the lines under are the values of the table

2 comments
What errors are you getting?
there arent any errors, it just doesnt go pass the if aid == d statement, the table loop works.