Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Getting images of developer products?

Asked by 9 years ago

This is to get the image of a developer product

local DeveloperProducts = game:GetService("MarketplaceService"):GetDeveloperProductsAsync():GetCurrentPage()

function GetProductImage(id) for _, Product in pairs(DeveloperProducts) do if Product.ProductId == id then print(Product.IconImageAssetId) return Product.IconImageAssetId end end end

item.Button.Image = GetProductImage(22527498)

Why does it print "string expected, got nil"?

0
Please format you code in lua code block. Goulstem 8144 — 9y

Answer this question