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
 

Developer Products

Previous Thread :: Next Thread 
liteImpulse is not online. liteImpulse
Joined: 05 Sep 2016
Total Posts: 251
11 Nov 2017 05:13 PM
This isn't functioning properly, I'm trying to make players receive cash when they buy it. I'm trying to see what I am doing wrong, can anyone please help me and tell me what my issue is here? Only this script doesn't function properly local MarketplaceService = game:GetService('MarketplaceService') MarketplaceService.ProcessReceipt = function(receiptInfo) for i, player in ipairs(game.Players:GetChildren()) do if player.userId == receiptInfo.PlayerId then if receiptInfo.ProductId == ######### then local cashmoney = game.ServerStorage.PlayerMoney:FindFirstChild(player.Name) if cashmoney then cashmoney.Value = cashmoney.Value + ##### end elseif receiptInfo.ProductId == ######### then local cashmoney = game.ServerStorage.MoneyStorage:FindFirstChild(player.Name) if cashmoney then cashmoney.Value = cashmoney.Value + ###### end end return Enum.ProductPurchaseDecision.PurchaseGranted end
Report Abuse
liteImpulse is not online. liteImpulse
Joined: 05 Sep 2016
Total Posts: 251
11 Nov 2017 05:24 PM
Never mind, had a slight misunderstanding.


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