johny220
|
  |
| Joined: 30 Oct 2011 |
| Total Posts: 4584 |
|
|
| 12 Apr 2014 06:41 PM |
| Sorry, but I'm totally lost on how to do this. |
|
|
| Report Abuse |
|
|
|
| 13 Apr 2014 01:25 AM |
local MarketplaceService = Game:GetService("MarketplaceService") local buyButton = way to the button or block that gets you the bost local productId = id buyButton.MouseButton1Click:connect(function(player) MarketplaceService:PromptProductPurchase(player, productId) --boost here end) |
|
|
| Report Abuse |
|
|
johny220
|
  |
| Joined: 30 Oct 2011 |
| Total Posts: 4584 |
|
|
| 13 Apr 2014 10:29 AM |
local MarketplaceService = Game:GetService("MarketplaceService") local buyButton = way to the button or block that gets you the bost local productId = id
buyButton.MouseButton1Click:connect(function(player) MarketplaceService:PromptProductPurchase(player, productId) --boost here (So right there, I would put the function, like "local.game.players.leaderstats.Money.Value + 500?) end) I can almost guruntee that's wrong, but again, im a complete noob
|
|
|
| Report Abuse |
|
|
|
| 13 Apr 2014 10:37 AM |
| script.Parent.Parent.Parent.leaderstats = script.Parent.Parent.Parent.leaderstats + 500 |
|
|
| Report Abuse |
|
|
johny220
|
  |
| Joined: 30 Oct 2011 |
| Total Posts: 4584 |
|
|
| 13 Apr 2014 11:47 AM |
script.Parent.Parent.Parent.leaderstats = script.Parent.Parent.Parent.leaderstats + 500
You don't specify which leaderstat, though. I have 3. |
|
|
| Report Abuse |
|
|
|
| 13 Apr 2014 01:08 PM |
| I would have figured you would do that part. |
|
|
| Report Abuse |
|
|
johny220
|
  |
| Joined: 30 Oct 2011 |
| Total Posts: 4584 |
|
|
| 14 Apr 2014 05:05 PM |
| what, script.Parent.Parent.Parent.leaderstats = script.Parent.Parent.Parent.leaderstats.Money.Value + 500? |
|
|
| Report Abuse |
|
|
|
| 14 Apr 2014 05:34 PM |
| script.Parent.Parent.Parent.leaderstats.Money.Value = script.Parent.Parent.Parent.leaderstats.Money.Value + 500 |
|
|
| Report Abuse |
|
|