TradeWish
|
  |
| Joined: 15 Sep 2015 |
| Total Posts: 14 |
|
|
| 10 May 2016 02:49 PM |
| If you buy a dev product you will get +50 cash on he leaderboard can somone script this for me. :/ |
|
|
| Report Abuse |
|
|
ausmel105
|
  |
| Joined: 05 Oct 2010 |
| Total Posts: 251 |
|
|
| 10 May 2016 02:52 PM |
| I'll answer questions, but actually making something will cost ya. |
|
|
| Report Abuse |
|
|
TradeWish
|
  |
| Joined: 15 Sep 2015 |
| Total Posts: 14 |
|
| |
|
TradeWish
|
  |
| Joined: 15 Sep 2015 |
| Total Posts: 14 |
|
| |
|
lululukas
|
  |
| Joined: 23 Aug 2010 |
| Total Posts: 1043 |
|
|
| 10 May 2016 03:00 PM |
| You're going to charge him for something so easy? way to be a rip off. |
|
|
| Report Abuse |
|
|
TradeWish
|
  |
| Joined: 15 Sep 2015 |
| Total Posts: 14 |
|
|
| 10 May 2016 03:02 PM |
| could you make it for free? |
|
|
| Report Abuse |
|
|
ausmel105
|
  |
| Joined: 05 Oct 2010 |
| Total Posts: 251 |
|
|
| 10 May 2016 03:04 PM |
@lululukas Your last solution on this forum was trash.
https://forum.roblox.com/Forum/ShowPost.aspx?PostID=188911412
If you want to do it for free, no one is stopping you... But please refrain from commenting on my dealings. |
|
|
| Report Abuse |
|
|
lululukas
|
  |
| Joined: 23 Aug 2010 |
| Total Posts: 1043 |
|
|
| 10 May 2016 03:04 PM |
I mean... It's literally on the wiki
http://wiki.roblox.com/index.php?title=Developer_product
Scroll down to the green box, your question is right there |
|
|
| Report Abuse |
|
|
JC_h
|
  |
| Joined: 06 May 2016 |
| Total Posts: 9 |
|
|
| 10 May 2016 03:05 PM |
The following code is provided in section 7.1 of the Developer Product page on the ROBLOX Wiki. It has been transcribed here. Here is a direct link: http://wiki.roblox.com/index.php?title=Developer_product#Exercise
Here is the transcribed code, with the cash changed from 5 to 50 --LocalScript in StarterPack -- setup local variables local buyButton = game.Workspace.BuyButton.SurfaceGui.TextButton local productId = 20518668 -- when player clicks on buy brick prompt him/her to buy a product buyButton.MouseButton1Click:connect(function() game:GetService("MarketplaceService"):PromptProductPurchase(game.Players.LocalPlayer, productId) end) --Script in BuyButton part -- setup local variables local MarketplaceService = Game:GetService("MarketplaceService") local ds = game:GetService("DataStoreService"):GetDataStore("PurchaseHistory") local productId = 20518668 -- define function that will be called when purchase finished MarketplaceService.ProcessReceipt = function(receiptInfo) -- find the player based on the PlayerId in receiptInfo for i, player in ipairs(game.Players:GetChildren()) do if player.userId == receiptInfo.PlayerId then -- check which product was purchased if receiptInfo.ProductId == productId then -- handle purchase player.leaderstats.Money.Value = player.leaderstats.Money.Value + 50 end end end -- record the transaction in a Data Store local playerProductKey = "player_" .. receiptInfo.PlayerId .. "_purchase_" .. receiptInfo.ProductId ds:IncrementAsync(playerProductKey, 1) -- tell ROBLOX that we have successfully handled the transaction return Enum.ProductPurchaseDecision.PurchaseGranted end
|
|
|
| Report Abuse |
|
|
TradeWish
|
  |
| Joined: 15 Sep 2015 |
| Total Posts: 14 |
|
|
| 10 May 2016 03:10 PM |
Thank you so much fot the help both of you!
Also the other guy wanted me to pay 1k ... |
|
|
| Report Abuse |
|
|
lululukas
|
  |
| Joined: 23 Aug 2010 |
| Total Posts: 1043 |
|
|
| 10 May 2016 03:13 PM |
| Lol, told you he's a rip off... |
|
|
| Report Abuse |
|
|
xlaser23
|
  |
| Joined: 10 Dec 2011 |
| Total Posts: 20341 |
|
| |
|