generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Need help with a esay script.

Previous Thread :: Next Thread 
TradeWish is not online. 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 is not online. 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 is not online. TradeWish
Joined: 15 Sep 2015
Total Posts: 14
10 May 2016 02:53 PM
how much?
Report Abuse
TradeWish is not online. TradeWish
Joined: 15 Sep 2015
Total Posts: 14
10 May 2016 02:58 PM
bump
Report Abuse
lululukas is not online. 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 is not online. TradeWish
Joined: 15 Sep 2015
Total Posts: 14
10 May 2016 03:02 PM
could you make it for free?
Report Abuse
ausmel105 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. xlaser23
Joined: 10 Dec 2011
Total Posts: 20341
10 May 2016 03:18 PM
Ausme get out scrub
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image