I didn’t include the full issue because it is a lot easier to explain this than that. I have to use rbxthumb:// because I’m trying to load the icon of every item in a players inventory.
heres my code:
local AssetIdToThumbtype = {
["Asset"] = {1,3,4,5,10,13,24,38,40,62},
["Avatar"] = {9,2,3,4,8,10,11,12,17,18,19,27,28,29,30,31,32,40,41,42,43,44,45,46,47,48,49,57,58,64,65,66,67,68,69,70,71,72},
["BadgeIcon"] = {21},
["GamePass"] = {34}
}
for i,v in pairs(Suspected.Favorites) do
print(v)
local clone = Results.All.Template:Clone()
print(getAssetType(v.Item.AssetType))
clone.Visible = true
clone.Parent = Results.All
local Thumbtype = nil
for A,B in pairs(AssetIdToThumbtype) do
if table.find(B, v.Item.AssetType) then
Thumbtype = A
end
end
print(Thumbtype)
clone.Image = "rbxthumb://type=Asset&id=" .. v.Item.AssetId .. "&width=420&height=420"
clone.ScrollingFrame.Na.Text = v.Item.Name
end