|
| 12 May 2016 04:51 PM |
If anyone reading this can script, please PM me.
I need help with a script and I can't post it on the forums.
Thanks
#BeardNotOn |
|
|
| Report Abuse |
|
|
Jammer622
|
  |
| Joined: 19 Nov 2008 |
| Total Posts: 1739 |
|
| |
|
|
| 12 May 2016 04:56 PM |
Seriously? I just need help not jokes.
#BeardNotOn |
|
|
| Report Abuse |
|
|
|
| 12 May 2016 04:58 PM |
You think a serious question is a joke. Ok.
~~~Da siggy is OP~~~ |
|
|
| Report Abuse |
|
|
Wowgnomes
|
  |
| Joined: 27 Sep 2009 |
| Total Posts: 26255 |
|
|
| 12 May 2016 04:59 PM |
whats a script tho for real
|
|
|
| Report Abuse |
|
|
|
| 12 May 2016 04:59 PM |
She is clearly trying to joke when she just posted a script on another forum post.
#BeardNotOn |
|
|
| Report Abuse |
|
|
Skellobit
|
  |
| Joined: 13 Apr 2016 |
| Total Posts: 12758 |
|
|
| 12 May 2016 05:00 PM |
tell me what a script is...this isnt minecraft
Formerly ToxicDominator - add 17,509 posts |
|
|
| Report Abuse |
|
|
|
| 12 May 2016 05:02 PM |
I want the person who purchased a developer product to get the money into their leaderboard.
Here is what I have so far:
DeveloperProductID = 0000000 --Change, "0000000" to the ID of your product.
plr = game.Players.LocalPlayer MarketplaceService = game:GetService("MarketplaceService")
script.Parent.Frame.btnSpeed.MouseButton1Down:connect(function() MarketplaceService:PromptProductPurchase(plr, DeveloperProductID) end)
#BeardNotOn |
|
|
| Report Abuse |
|
|
Jammer622
|
  |
| Joined: 19 Nov 2008 |
| Total Posts: 1739 |
|
|
| 12 May 2016 05:03 PM |
Is that a script? You were hiding that from the forum? ;_; |
|
|
| Report Abuse |
|
|
|
| 12 May 2016 05:04 PM |
I dont really understand you when you "Is that a script?" but yes that is it.
Can you help me?
#BeardNotOn |
|
|
| Report Abuse |
|
|
Jammer622
|
  |
| Joined: 19 Nov 2008 |
| Total Posts: 1739 |
|
|
| 12 May 2016 05:09 PM |
http://wiki.roblox.com/index.php?title=Developer_product here you go.
there's literally a tutorial at the bottom of the page that explains how to do exactly what you're asking. |
|
|
| Report Abuse |
|
|
|
| 12 May 2016 05:10 PM |
I know. I literally already tried that but it doesn't tell you how to put the money in the leaderboard!
#BeardNotOn |
|
|
| Report Abuse |
|
|
Jammer622
|
  |
| Joined: 19 Nov 2008 |
| Total Posts: 1739 |
|
|
| 12 May 2016 05:13 PM |
i cant what
-- handle purchase player.leaderstats.Money.Value = player.leaderstats.Money.Value + 5
are you looking for that or are you looking for an actual leaderboard
game.Players.PlayerAdded:connect(function(Player) local a = Instance.new("IntValue", Player) a.Name = "leaderstats" local b = Instance.new("IntValue", a) b.Name = "Money" b.Value = 0 --yay starting cash. jk you're broke. end) |
|
|
| Report Abuse |
|
|
|
| 12 May 2016 05:14 PM |
I have everything set up. I just need the code line(s) so where you buy it and it goes to your leaderboard stats.
#BeardNotOn |
|
|
| Report Abuse |
|
|
Jammer622
|
  |
| Joined: 19 Nov 2008 |
| Total Posts: 1739 |
|
|
| 12 May 2016 05:19 PM |
so you're telling me you had a script you initially wanted to keep hidden from the public eye
but you cant read through this and pick the resources you need
--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 + 5 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 |
|
|
|
| 12 May 2016 05:24 PM |
Yes
Can't you just take my original script and edit it from there?
I don't understand sometimes.
#BeardNotOn |
|
|
| Report Abuse |
|
|
ZekeZeth
|
  |
| Joined: 23 Jan 2014 |
| Total Posts: 2866 |
|
|
| 12 May 2016 05:33 PM |
"--Change, "0000000" to the ID of your product.z"
um why is there a comma between change and the ID must take english classes before you learn to script okay |
|
|
| Report Abuse |
|
|
|
| 12 May 2016 05:35 PM |
It's a bug it'll be fixed.
#BeardNotOn |
|
|
| Report Abuse |
|
|
ZekeZeth
|
  |
| Joined: 23 Jan 2014 |
| Total Posts: 2866 |
|
|
| 12 May 2016 05:35 PM |
| um ok thats probably whats breaking you're script remove comna |
|
|
| Report Abuse |
|
|
Jammer622
|
  |
| Joined: 19 Nov 2008 |
| Total Posts: 1739 |
|
|
| 12 May 2016 05:37 PM |
im dying
a commented comma cannot break a script |
|
|
| Report Abuse |
|
|
|
| 12 May 2016 05:37 PM |
Number 1 the script will be removed Number 2 that isn't breaking the script I just need the part where it goes into the leaderboard.
#BeardNotOn |
|
|
| Report Abuse |
|
|
RobuxLife
|
  |
| Joined: 19 Sep 2012 |
| Total Posts: 13336 |
|
|
| 12 May 2016 05:38 PM |
@zeke
so, you're saying a comment will break a script.
k
|
|
|
| Report Abuse |
|
|
| |
|
Jammer622
|
  |
| Joined: 19 Nov 2008 |
| Total Posts: 1739 |
|
|
| 12 May 2016 05:43 PM |
also i seriously cannot rewrite your script for you without it looking exactly like the example script
you see this thing http://www.roblox.com/games/147965737/Developer-Product-Sample go edit this thing and look at the things |
|
|
| Report Abuse |
|
|
|
| 12 May 2016 05:45 PM |
If you can no longer help me I will find another person to help me.
Thanks.
#BeardNotOn |
|
|
| Report Abuse |
|
|