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

roblox GetProductInfo.Sales returning nil?

Asked by 5 years ago

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.

0
It seems to not be in the table at all https://gyazo.com/8900cda509b772454dc85cd6a2ab0fa7 User#5423 17 — 5y
0
I believe you are looking at the Gamepass Info? I am look at ProductInfo https://imgur.com/mqTDjwg CrazyCorrs 98 — 5y
0
@CrazyCorrs its a dev product User#5423 17 — 5y
0
Why does it say it's a thing on that site? CrazyCorrs 98 — 5y

1 answer

Log in to vote
1
Answered by 5 years ago
Edited 5 years ago

From what I saw from the docs, .Sales doesn't work with developer products

https://gyazo.com/c14641e3fde7353c61d69cfd195c56ea

(Sales is listed under Assets)

Ad

Answer this question