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: Developer Product Problems.

Previous Thread :: Next Thread 
Joeyawesome is not online. Joeyawesome
Joined: 21 Aug 2009
Total Posts: 34
05 Jan 2015 03:10 PM
When i use this script.
local MarketplaceService = game:GetService("MarketplaceService")
local PointsID = 22240528 --ID's of ur DP's
local PurchaseHistory = game:GetService("DataStoreService"):GetDataStore("PurchaseHistory")

MarketplaceService.ProcessReceipt = function(receiptInfo)
for i, player in ipairs(game.Players:GetChildren()) do
if player.userId == receiptInfo.PlayerId then
if receiptInfo.ProductId == PointsID then
player.leaderstats.Points.Value = player.leaderstats.Points.Value + 1000
end
end
end
local playerProductKey = "player_" .. receiptInfo.PlayerId .. "_purchase_" .. receiptInfo.PurchaseId
PurchaseHistory:IncrementAsync(playerProductKey, 1)
return Enum.ProductPurchaseDecision.PurchaseGranted
end

And someone buys the product it does not add +1000 to their stats. I have the leaderboard setup as Points. And when someone does buy it they stall at 0 and i dont get any profit from their purchase any ideas?
Report Abuse
Joeyawesome is not online. Joeyawesome
Joined: 21 Aug 2009
Total Posts: 34
05 Jan 2015 03:17 PM
bump
Report Abuse
Joeyawesome is not online. Joeyawesome
Joined: 21 Aug 2009
Total Posts: 34
05 Jan 2015 03:23 PM
b2
Report Abuse
Joeyawesome is not online. Joeyawesome
Joined: 21 Aug 2009
Total Posts: 34
05 Jan 2015 03:32 PM
..
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