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 » Scripters
Home Search
 

Get place info

Previous Thread :: Next Thread 
Roblok1 is online. Roblok1
Joined: 27 Jul 2011
Total Posts: 2019
26 Jan 2015 04:14 PM
Is there any possible way for me to get the information from a place just from its ID. If so, how do I do it? I ask because I seen admin Scripts with this function. It would list the name of the place along with the place thumbnail too.
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
26 Jan 2015 04:15 PM
MarketplaceService.GetProductInfo
Report Abuse
Roblok1 is online. Roblok1
Joined: 27 Jul 2011
Total Posts: 2019
26 Jan 2015 04:16 PM
Really? What does it return? A table? A string? Or something else?
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
26 Jan 2015 04:17 PM
Look it up -_-
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
26 Jan 2015 04:18 PM
BTW

print(game.Name)
Report Abuse
Roblok1 is online. Roblok1
Joined: 27 Jul 2011
Total Posts: 2019
26 Jan 2015 04:20 PM
No, I don't want to know how to print the name of the game I already am in. I want to know how to get the place name of a certain ID.
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
26 Jan 2015 04:24 PM
MarketplaceService:GetProductInfo(Id)
Report Abuse
Roblok1 is online. Roblok1
Joined: 27 Jul 2011
Total Posts: 2019
26 Jan 2015 04:26 PM
Ok then. Wait, if this function returns a value, wouldn't I need to use the print function to?
Report Abuse
ImageLabel is not online. ImageLabel
Joined: 08 Dec 2012
Total Posts: 428
26 Jan 2015 04:28 PM
http://wiki.roblox.com/index.php?title=API:Class/MarketplaceService/GetProductInfo

You could have just looked it up and figured it out by yourself :/


local Marketplace, AssetId = game:service('MarketplaceService'), 208328683

local Data = Marketplace:GetProductInfo(AssetId)

print(Data.Name)
Report Abuse
Roblok1 is online. Roblok1
Joined: 27 Jul 2011
Total Posts: 2019
26 Jan 2015 04:38 PM
Even though my problem was solved, I Think most people are just lazy and referred to the wiki because they don't know how to do it themselves. You can argue with me all you want, but at this point it doesn't really matter. Form closed.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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