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
 

Re: Print a gamepasses sales?

Previous Thread :: Next Thread 
haydebug2003 is not online. haydebug2003
Joined: 21 Jan 2012
Total Posts: 5302
11 Jun 2015 03:41 PM
How would i print a gampasses sales, for example if it was like this

local gpid= 0000
print(gpid.sales)
How would I do it?


http://www.roblox.com/Trade/TradeWindow.aspx?TradePartnerID=23313558
Report Abuse
haydebug2003 is not online. haydebug2003
Joined: 21 Jan 2012
Total Posts: 5302
11 Jun 2015 03:48 PM
BOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOm


http://www.roblox.com/Trade/TradeWindow.aspx?TradePartnerID=23313558
Report Abuse
haydebug2003 is not online. haydebug2003
Joined: 21 Jan 2012
Total Posts: 5302
11 Jun 2015 03:52 PM
bummppp


http://www.roblox.com/Trade/TradeWindow.aspx?TradePartnerID=23313558
Report Abuse
haydebug2003 is not online. haydebug2003
Joined: 21 Jan 2012
Total Posts: 5302
11 Jun 2015 03:57 PM
bumppppp


http://www.roblox.com/Trade/TradeWindow.aspx?TradePartnerID=23313558
Report Abuse
hdtv13 is not online. hdtv13
Joined: 18 Sep 2012
Total Posts: 1628
11 Jun 2015 04:01 PM
Print when a player buys it?

I have skin, potatoes have skin, therefore I'm a potato.
Report Abuse
haydebug2003 is not online. haydebug2003
Joined: 21 Jan 2012
Total Posts: 5302
11 Jun 2015 04:01 PM
@hdtv No total sales.


http://www.roblox.com/Trade/TradeWindow.aspx?TradePartnerID=23313558
Report Abuse
haydebug2003 is not online. haydebug2003
Joined: 21 Jan 2012
Total Posts: 5302
11 Jun 2015 04:06 PM
bump bumpity bumpeto


http://www.roblox.com/Trade/TradeWindow.aspx?TradePartnerID=23313558
Report Abuse
LongKillKreations is not online. LongKillKreations
Joined: 14 Feb 2014
Total Posts: 4502
11 Jun 2015 04:07 PM
You don't need to bump every time your thread moves down a place lol.

I'm sure there might be some way to do it with HttpService, but you could just keep a datastore with the number of sales on it, and update whenever a user buys.
Report Abuse
hdtv13 is not online. hdtv13
Joined: 18 Sep 2012
Total Posts: 1628
11 Jun 2015 04:08 PM
1. Stop bumping it will make people think the question has been solved.

Use http service and find an API

I have skin, potatoes have skin, therefore I'm a potato.
Report Abuse
LongKillKreations is not online. LongKillKreations
Joined: 14 Feb 2014
Total Posts: 4502
11 Jun 2015 04:08 PM
Actually you could probably do it with MarketplaceService. Dunno
Report Abuse
DataStore is not online. DataStore
Joined: 07 Feb 2012
Total Posts: 8540
11 Jun 2015 04:12 PM
local ProductInfo = game:GetService("MarketplaceService"):GetProductInfo(assetId)
print(ProductInfo.Sales)

http://wiki.roblox.com/index.php?title=API:Class/MarketplaceService/GetProductInfo

There is absolutely no reason to use HttpService in this instance.
Report Abuse
haydebug2003 is not online. haydebug2003
Joined: 21 Jan 2012
Total Posts: 5302
11 Jun 2015 04:12 PM
I think I figured it out.
local Asset = game:GetService("MarketplaceService"):GetProductInfo(125378389).Sales


http://www.roblox.com/Trade/TradeWindow.aspx?TradePartnerID=23313558
Report Abuse
haydebug2003 is not online. haydebug2003
Joined: 21 Jan 2012
Total Posts: 5302
11 Jun 2015 04:13 PM
@Data We posted at the same time, anyways thanks.


http://www.roblox.com/Trade/TradeWindow.aspx?TradePartnerID=23313558
Report Abuse
iSpecializinq is not online. iSpecializinq
Joined: 31 May 2015
Total Posts: 2182
11 Jun 2015 04:23 PM
local AssetID = 0000

print(game:GetService("MarketplaceService"):GetProductInfo(AssetID).Sales)
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