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: please help why my dev product not working

Previous Thread :: Next Thread 
Storylife is online. 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
ExtremeBuilder15 is online. ExtremeBuilder15
Joined: 01 May 2012
Total Posts: 3176
09 Aug 2017 11:05 AM
you have to return Enum.ProductPurchaseDecision.PurchaseGranted after you award the money

Report Abuse
Storylife is online. 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
ExtremeBuilder15 is online. ExtremeBuilder15
Joined: 01 May 2012
Total Posts: 3176
09 Aug 2017 11:12 AM
if cashmoney then
cashmoney.Value = cashmoney.Value + 1000
return Enum.ProductPurchaseDecision.PurchaseGranted
end

Report Abuse
Storylife is online. Storylife
Joined: 27 Nov 2010
Total Posts: 19373
09 Aug 2017 11:13 AM
thank you i will try that


Report Abuse
Storylife is online. 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
ExtremeBuilder15 is online. ExtremeBuilder15
Joined: 01 May 2012
Total Posts: 3176
09 Aug 2017 11:22 AM
learn to script then

wiki.roblox.com

Report Abuse
JoeDev is not online. JoeDev
Joined: 04 Oct 2011
Total Posts: 6475
09 Aug 2017 11:43 AM
oh snap its that guy
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