|
| 27 Jun 2014 04:52 PM |
I am using this gui to an in-game currency called gems. The problem is, you don't need to buy the product to be awarded the gems. I don't really know what I could do to fix this, if you know please help. Here is the script:
local buyButton = script.Parent local productId = 20291201
buyButton.MouseButton1Click:connect(function() Game:GetService("MarketplaceService"):PromptProductPurchase(game.Players.LocalPlayer, productId) game.Players.LocalPlayer.Gems.Value = game.Players.LocalPlayer.Gems.Value + 10 end) |
|
|
| Report Abuse |
|
wonuf
|
  |
| Joined: 28 May 2013 |
| Total Posts: 133 |
|
|
| 27 Jun 2014 05:02 PM |
Use a Data Store service.
http://wiki.roblox.com/index.php?title=PlayerDataStore_Module |
|
|
| Report Abuse |
|