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

GetProductInfo returning an empty table?

I'm trying to get information about a developer product in my game using this code:

local marketService = game:GetService("MarketplaceService")
local product = 996552931
local info = marketService:GetProductInfo(product)
print(#info)

The result I get is an empty table, and #info is 0. What's going on?

4 comments

0

Are you trying to get the name of the product/or asset?

0

I'm trying to get the price of the product.

0

Is the product a gamepass?

0

It's a developer product for buying in-game currency.

1 answer

✓ Accepted answer
local info = game:GetService("MarketplaceService"):GetProductInfo(996552931, Enum.InfoType.GamePass).PriceInRobux
print(info)

This should probably work.

1 comment

0

I needed to change GamePass to Product, since it's a developer product, but besides that, this works. Thanks!

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