Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
|
| 19 Jul 2013 12:46 PM |
I have this script which is supposed to get the description of a model. And would it work?
local desc = game:GetService("MarketplaceService"):GetProductInfo(IDHERE)
if type(desc):lower() == "table" then desc = assert(LoadLibrary("RbxUtility")).DecodeJSON(desc) for _,v in pairs(desc) do print(v) end end |
|
|
| Report Abuse |
|
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
| |
|
kinglime
|
  |
| Joined: 27 Jun 2008 |
| Total Posts: 2751 |
|
|
| 19 Jul 2013 12:58 PM |
des = game:GetService("MarketplaceService"):GetProductInfo(6503377).Description print(des)
would get it.
idk what all that stuff in your code means, so i am not much help here lol. |
|
|
| Report Abuse |
|
|
Kepie
|
  |
| Joined: 12 Nov 2011 |
| Total Posts: 884 |
|
| |
|
Kepie
|
  |
| Joined: 12 Nov 2011 |
| Total Posts: 884 |
|
| |
|
Kepie
|
  |
| Joined: 12 Nov 2011 |
| Total Posts: 884 |
|
| |
|
Kepie
|
  |
| Joined: 12 Nov 2011 |
| Total Posts: 884 |
|
| |
|
|
| 19 Jul 2013 04:37 PM |
| No, Because JSON is classified as a string, not a table, and it will only be JSON if it's called from Studio on iPad... |
|
|
| Report Abuse |
|
|
Kepie
|
  |
| Joined: 12 Nov 2011 |
| Total Posts: 884 |
|
|
| 19 Jul 2013 04:51 PM |
Alright so do i just
game:GetService('MarketPlaceService'):GetProductInfo(MODELID).Description? |
|
|
| Report Abuse |
|
|
|
| 19 Jul 2013 04:59 PM |
game:GetService('MarketplaceService'):GetProductInfo(MODELID).Description
will work on everything except for in Studio on iPad... |
|
|
| Report Abuse |
|
|
kinglime
|
  |
| Joined: 27 Jun 2008 |
| Total Posts: 2751 |
|
| |
|
|
| 19 Jul 2013 05:12 PM |
| Based on http://wiki.roblox.com/index.php/GetProductInfo_(Method) this will still return JSON in Studio and on Ipad... [Though I'm not sure when the last time it has been updated is sooo that may be fixed... maybe...] |
|
|
| Report Abuse |
|
|
blocco
|
  |
| Joined: 14 Aug 2008 |
| Total Posts: 29474 |
|
|
| 19 Jul 2013 05:14 PM |
| It does not return JSON anymore. Now it returns a table. |
|
|
| Report Abuse |
|
|
blocco
|
  |
| Joined: 14 Aug 2008 |
| Total Posts: 29474 |
|
|
| 19 Jul 2013 05:15 PM |
| On the iPad I'm not sure, but it should return a table |
|
|
| Report Abuse |
|
|
|
| 19 Jul 2013 05:17 PM |
................. Naw really?.. If you would read what I typed... it 'still' returns JSON on 'Studio' and on 'Ipad' ................ |
|
|
| Report Abuse |
|
|
blocco
|
  |
| Joined: 14 Aug 2008 |
| Total Posts: 29474 |
|
|
| 19 Jul 2013 05:19 PM |
| In studio it definitely returns a table, I tested it |
|
|
| Report Abuse |
|
|
|
| 19 Jul 2013 05:21 PM |
| Which is also why I said I don't know how up to date the page is... |
|
|
| Report Abuse |
|
|