|
| 10 Aug 2014 09:30 PM |
What Am I doing wrong?!?
local MarketplaceService = Game:GetService("MarketplaceService") local ds = game:GetService("DataStoreService"):GetDataStore("PurchaseHistory") local id= 20862676 MarketplaceService.ProcessReceipt = function(receiptInfo) local playerProductKey = "player_" .. receiptInfo.PlayerId .. "_product_" .. receiptInfo.ProductId local numberBought = ds:IncrementAsync(playerProductKey, 1) game.Workspace.DisplayScreen.SurfaceGui.TextBox.Text = receiptInfo.PlayerId .. " has bought " .. numberBought .. " items." return Enum.ProductPurchaseDecision.PurchaseGranted end |
|
|
| Report Abuse |
|
|
iiEssence
|
  |
| Joined: 18 Jun 2014 |
| Total Posts: 3467 |
|
| |
|
| |
|
| |
|
| |
|
| |
|
Vescatur
|
  |
| Joined: 18 Feb 2012 |
| Total Posts: 3426 |
|
|
| 10 Aug 2014 09:46 PM |
http://wiki.roblox.com/index.php?title=Developer_product
http://www.roblox.com/Developer-Product-Sample-place?id=147965737 |
|
|
| Report Abuse |
|
|
| |
|
|
| 10 Aug 2014 10:06 PM |
Nvm worked! :D
Thx so much! |
|
|
| Report Abuse |
|
|
Vescatur
|
  |
| Joined: 18 Feb 2012 |
| Total Posts: 3426 |
|
| |
|
|
| 11 Aug 2014 07:53 AM |
| Actually one problem, What would I do if I wanted many because It only works with one. |
|
|
| Report Abuse |
|
|