|
| 07 Mar 2014 11:40 AM |
Hey there. I have this script. Im not sure if I'm missing anything or if I messed it up. When I tested it, the purchase was a success, but the Cash value on the leaderboard didn't increase. Can someone help?
~.~.~.~. THE SCRIPT .~.~.~.~
local buyButton = game.Workspace.BuyButton.SurfaceGui.TextButton local productId = 19245262
buyButton.MouseButton1Click:connect(function() Game:GetService("MarketplaceService"):PromptProductPurchase(game.Players.LocalPlayer, productId) game.Players.LocalPlayer.leaderboard.Cash.Value = game.Players.LocalPlayer.leaderboard.Cash.Value + 1000 end)
|
|
|
| Report Abuse |
|
|
|
| 07 Mar 2014 11:41 AM |
| BTW, this is the Developer Products update. |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
error9999
|
  |
| Joined: 05 Sep 2009 |
| Total Posts: 1593 |
|
|
| 07 Mar 2014 05:17 PM |
| is this a local script? c: |
|
|
| Report Abuse |
|
|
error9999
|
  |
| Joined: 05 Sep 2009 |
| Total Posts: 1593 |
|
|
| 07 Mar 2014 05:19 PM |
| btw, are you sure it's leaderboard, isn't it leaderstats? c: |
|
|
| Report Abuse |
|
|
|
| 07 Mar 2014 10:51 PM |
| What's wrong if it's in a LocalScript? Should it be in a normal script? |
|
|
| Report Abuse |
|
|
error9999
|
  |
| Joined: 05 Sep 2009 |
| Total Posts: 1593 |
|
|
| 08 Mar 2014 03:37 PM |
are you sure about that leaderboard thing?
if the stats show up at playetlist, it's leaderstats c; |
|
|
| Report Abuse |
|
|
|
| 09 Mar 2014 10:20 PM |
| Thanks for the help, error, It worked! |
|
|
| Report Abuse |
|
|