Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

roblox GetProductInfo.Sales returning nil?

Hello, I am working on a script which is meant to check the sales on a Developer Product. Here is my script:

local PRODUCT_ID = 433463734
 
local MarketplaceService = game:GetService("MarketplaceService")
 
local productInfo = MarketplaceService:GetProductInfo(PRODUCT_ID, Enum.InfoType.Product)
 
print(productInfo.IconImageAssetId)
print(productInfo.Sales)

I was trying to use '.Sales' because it seems to be displayed as Sales on this website: https://api.roblox.com/docs But for some reason It returns nil? The IconImageAssetId works fine though? How can I fix this.

4 comments

0

It seems to not be in the table at all https://gyazo.com/8900cda509b772454dc85cd6a2ab0fa7

0

I believe you are looking at the Gamepass Info? I am look at ProductInfo https://imgur.com/mqTDjwg

0

@CrazyCorrs its a dev product

0

Why does it say it's a thing on that site?

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.