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

Finding Price For Catalog Item?

Asked by
PolyyDev 214 Moderation Voter
6 years ago

I have a script to find the name and description of a item from the catalog but how would I find the price? I have tried everything I can think of.

local ms = game:GetService("MarketplaceService")
local name = script.Parent.Price -- Random Example
local item = 1234567
name.Value = ms:GetProductInfo(item).Price -- .Name and .Description work so why not price?

So if you could help me find out the correct way to do it that would be awesome. I assume it will have stuff to with http and JSON so some help is appreciated as I am not very familiar with this area of roblox.

0
instead of `Price` do `PriceInRobux` creeperhunter76 554 — 6y
0
JSON is not part of ROBLOX, it is its individual language. Quite easy to read, too. Also, it does not return JSON, just a Lua dictionary. hiimgoodpack 2009 — 6y
0
Is that the answer or an assumption? PolyyDev 214 — 6y
0
That seems to work but gets the original price not the current one PolyyDev 214 — 6y
View all comments (2 more)
0
it should work for the most part. Correct Price to PriceInRobux and see if that helps User#9949 0 — 6y
0
Are you talking about people reselling limiteds? Also, I checked the wiki and it said it returned a dictionary. hiimgoodpack 2009 — 6y

Answer this question