|
| 02 Mar 2014 10:54 PM |
assetId = 19181607 player = game.Players.LocalPlayer
script.Parent.MouseButton1Down:connect(function() game:GetService("MarketplaceService"):PromptProductPurchase(player, assetId) end)
game:GetService("MarketplaceService").PromptPurchaseFinished:connect(function(player, assetId, isPurchased) if isPurchased then game.Players.LocalPlayer.leaderstats.Points.Value = game.Players.LocalPlayer.leaderstats.Points.Value + 100 end end) |
|
|
| Report Abuse |
|
|
| |
|
Draphant
|
  |
| Joined: 13 May 2012 |
| Total Posts: 700 |
|
|
| 02 Mar 2014 11:55 PM |
| make sure its in a local script, and post any errors you got |
|
|
| Report Abuse |
|
|
|
| 03 Mar 2014 12:02 AM |
| It is a LocalScript, and I'm not getting any errors |
|
|
| Report Abuse |
|
|
|
| 03 Mar 2014 12:42 AM |
| PromptPurchaseFinished is deprecated. |
|
|
| Report Abuse |
|
|
|
| 03 Mar 2014 01:20 AM |
| I am looking for a script like that but it never works for me. But where is the part that you sending to an onClicked button on the GUI or something... |
|
|
| Report Abuse |
|
|
|
| 03 Mar 2014 06:39 AM |
| PromptPurchaseFinished is not deprecated, PromptProductPurchaseFinished is. |
|
|
| Report Abuse |
|
|
|
| 03 Mar 2014 12:37 PM |
| Where can this script go? In StarterPack or a part can (specially SurfaceGui, ScreenGui)? |
|
|
| Report Abuse |
|
|