Storylife
|
  |
| Joined: 27 Nov 2010 |
| Total Posts: 19373 |
|
|
| 09 Aug 2017 10:57 AM |
MarketplaceService.ProcessReceipt = function(receiptInfo) local productId = receiptInfo.ProductId local playerId = receiptInfo.PlayerId local player = getPlayerFromId(playerId) local productName if productId == 91528845 then productName = "$1,000!" local cashmoney = game.ServerStorage.PlayerMoney:FindFirstChild(player.Name) if cashmoney then cashmoney.Value = cashmoney.Value + 1000 end "Your purchase of +1,000 Cash failed because something went wrong. Your account has not been charged. Please try again later."
it says that when me and my freind tryed to buy it
|
|
|
| Report Abuse |
|
|
|
| 09 Aug 2017 11:05 AM |
you have to return Enum.ProductPurchaseDecision.PurchaseGranted after you award the money
|
|
|
| Report Abuse |
|
|
Storylife
|
  |
| Joined: 27 Nov 2010 |
| Total Posts: 19373 |
|
|
| 09 Aug 2017 11:11 AM |
can you type that part for me in my script please ? i do not understand
|
|
|
| Report Abuse |
|
|
|
| 09 Aug 2017 11:12 AM |
if cashmoney then cashmoney.Value = cashmoney.Value + 1000 return Enum.ProductPurchaseDecision.PurchaseGranted end
|
|
|
| Report Abuse |
|
|
Storylife
|
  |
| Joined: 27 Nov 2010 |
| Total Posts: 19373 |
|
| |
|
Storylife
|
  |
| Joined: 27 Nov 2010 |
| Total Posts: 19373 |
|
|
| 09 Aug 2017 11:16 AM |
hello it still does not work what do i do ?
|
|
|
| Report Abuse |
|
|
|
| 09 Aug 2017 11:22 AM |
learn to script then
wiki.roblox.com
|
|
|
| Report Abuse |
|
|
JoeDev
|
  |
| Joined: 04 Oct 2011 |
| Total Posts: 6475 |
|
| |
|