Say if I wanted to retrieve all possible audio id's using a ridiculously long for loop, and used the GetProductInfo of the MarketplaceService.
wait()
for idAsset = 156000000, 131000000, -1 do -- Rough approx. of newest sound id to oldest sound id.
local curId = game:GetService("MarketplaceService"):GetProductInfo(idAsset)
if curId then -- This id exists.
print(curId.Name) -- Print the name of the sound.
end
end
However, when it executes for the first time:
MarketplaceService:getProductInfo() failed because rawProductInfo was empty.
I can't check whether it is nil (or otherwise empty)?

1 comment
Do you parse these with ContentProvider? I can see what you're going with here..