generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Would this work?

Previous Thread :: Next Thread 
Fedorakid is not online. 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 is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
19 Jul 2013 12:56 PM
bump
Report Abuse
kinglime is not online. 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 is not online. Kepie
Joined: 12 Nov 2011
Total Posts: 884
19 Jul 2013 02:24 PM
bump (my alt)
Report Abuse
Kepie is not online. Kepie
Joined: 12 Nov 2011
Total Posts: 884
19 Jul 2013 02:49 PM
bump
Report Abuse
Kepie is not online. Kepie
Joined: 12 Nov 2011
Total Posts: 884
19 Jul 2013 03:30 PM
omg, bump.
Report Abuse
Kepie is not online. Kepie
Joined: 12 Nov 2011
Total Posts: 884
19 Jul 2013 04:17 PM
bump.
Report Abuse
Christbru01 is not online. Christbru01
Joined: 03 Apr 2010
Total Posts: 649
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 is not online. 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
Christbru01 is not online. Christbru01
Joined: 03 Apr 2010
Total Posts: 649
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 is not online. kinglime
Joined: 27 Jun 2008
Total Posts: 2751
19 Jul 2013 05:08 PM
Works fine in Studio....
Report Abuse
Christbru01 is not online. Christbru01
Joined: 03 Apr 2010
Total Posts: 649
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 is not online. 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 is not online. 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
Christbru01 is not online. Christbru01
Joined: 03 Apr 2010
Total Posts: 649
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 is not online. 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
Christbru01 is not online. Christbru01
Joined: 03 Apr 2010
Total Posts: 649
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image