|
| 13 Sep 2015 08:36 PM |
this is the script:
local productId = 26148174 local product2 = 26163592
local MP = game:getService("MarketplaceService"):PromptProductPurchase(player, 26148174)
script.Parent.MouseButton1Click:connect(function() MP end)
local DS = game:getService("DataStoreService"):GetDataStore("PurchaseHistory")
MP.ProcessReciept = function(RI) for i, player in ipairs(game.Players:getChildren()) do if player.UserId == RI.playerId then if RI.ProductId == productId then game.Workspace.CHARACTER.Humanoid.Walkspeed * 2 elseif RI.ProductId == product2 then player.Character.Health = 0 end end end local playerProductKey = "player_" . . RI.PlayerId . . "_purchased_" . . RI.PurchaseId PurchaseHistory.IncrementAsync[playerProductKey, 1)
return Enum.ProductPurchaseDecision.PurchaseGranted end
#code print ("Shots fired, ready for the war!") -- Currently working on Gui's |
|
|
| Report Abuse |
|
|
|
| 13 Sep 2015 08:36 PM |
| How many threads do you have to make ;-; |
|
|
| Report Abuse |
|
|
Vortilis
|
  |
| Joined: 06 Jul 2014 |
| Total Posts: 14163 |
|
|
| 13 Sep 2015 08:37 PM |
http://wiki.roblox.com/index.php?title=Absolute_beginner%27s_guide_to_scripting
http://www.roblox.com/Toms-Bait-Beans-item?id=292084570 http://www.roblox.com/DROP-IT-item?id=145934228 |
|
|
| Report Abuse |
|
|
|
| 13 Sep 2015 08:37 PM |
@rep
My old threads have so many bumps so I made new one's
@vor
Im not a beginner
#code print ("Shots fired, ready for the war!") -- Currently working on Gui's |
|
|
| Report Abuse |
|
|
|
| 13 Sep 2015 08:39 PM |
Nothing*
#code print ("Shots fired, ready for the war!") -- Currently working on Gui's |
|
|
| Report Abuse |
|
|
Vortilis
|
  |
| Joined: 06 Jul 2014 |
| Total Posts: 14163 |
|
|
| 13 Sep 2015 08:39 PM |
maybe you're not a beginner to lua but you are to reading. "This is the place for discussion about scripting. Anything about scripting that is not a help request or topic belongs here."
http://www.roblox.com/Toms-Bait-Beans-item?id=292084570 http://www.roblox.com/DROP-IT-item?id=145934228 |
|
|
| Report Abuse |
|
|
Vortilis
|
  |
| Joined: 06 Jul 2014 |
| Total Posts: 14163 |
|
|
| 13 Sep 2015 08:39 PM |
and it helps to give us the output
http://www.roblox.com/Toms-Bait-Beans-item?id=292084570 http://www.roblox.com/DROP-IT-item?id=145934228 |
|
|
| Report Abuse |
|
|
|
| 13 Sep 2015 08:39 PM |
@vor
I saw you help someone else.
I could link the thread if you'd like?
#code print ("Shots fired, ready for the war!") -- Currently working on Gui's |
|
|
| Report Abuse |
|
|
Vortilis
|
  |
| Joined: 06 Jul 2014 |
| Total Posts: 14163 |
|
|
| 13 Sep 2015 08:40 PM |
please do
http://www.roblox.com/Toms-Bait-Beans-item?id=292084570 http://www.roblox.com/DROP-IT-item?id=145934228 |
|
|
| Report Abuse |
|
|
|
| 13 Sep 2015 08:41 PM |
http://www.roblox.com/Forum/ShowPost.aspx?PostID=174099768
#code print ("Shots fired, ready for the war!") -- Currently working on Gui's |
|
|
| Report Abuse |
|
|
Vortilis
|
  |
| Joined: 06 Jul 2014 |
| Total Posts: 14163 |
|
|
| 13 Sep 2015 08:41 PM |
i didnt mean to help him, i was going to link him to the wiki and i mistyped and somehow it fixed his problem major typo.
http://www.roblox.com/Toms-Bait-Beans-item?id=292084570 http://www.roblox.com/DROP-IT-item?id=145934228 |
|
|
| Report Abuse |
|
|
Vortilis
|
  |
| Joined: 06 Jul 2014 |
| Total Posts: 14163 |
|
|
| 13 Sep 2015 08:42 PM |
also, a post very recent of mine in this thread "and it helps to give us the output" so im willing to help you http://www.roblox.com/Toms-Bait-Beans-item?id=292084570 http://www.roblox.com/DROP-IT-item?id=145934228 |
|
|
| Report Abuse |
|
|
|
| 13 Sep 2015 08:42 PM |
Get out.
#code print ("Shots fired, ready for the war!") -- Currently working on Gui's |
|
|
| Report Abuse |
|
|
Vortilis
|
  |
| Joined: 06 Jul 2014 |
| Total Posts: 14163 |
|
|
| 13 Sep 2015 08:43 PM |
omg wtf i want to help you. i almost fainted from horror, that was so rude!
http://www.roblox.com/Toms-Bait-Beans-item?id=292084570 http://www.roblox.com/DROP-IT-item?id=145934228 |
|
|
| Report Abuse |
|
|
|
| 13 Sep 2015 08:44 PM |
heres the output
if you're "so going" to help
21:42:18.383 - Unable to load plugin icon. Image may have an invalid or unknown format. 21:42:18.781 - Workspace.Script:24: unexpected symbol near '.' 21:42:19.034 - Players.Player.PlayerGui.ScreenGui.Shop.DoubleSpeed.Script:8: '=' expected near 'end'
#code print ("Shots fired, ready for the war!") -- Currently working on Gui's |
|
|
| Report Abuse |
|
|
Vortilis
|
  |
| Joined: 06 Jul 2014 |
| Total Posts: 14163 |
|
|
| 13 Sep 2015 08:46 PM |
seems like a syntax error. you're either missing an end, used ==/= wrong, or used : instead of . or vise versa. now go fix it you stupid noob just kidding please dont hurt me
http://www.roblox.com/Toms-Bait-Beans-item?id=292084570 http://www.roblox.com/DROP-IT-item?id=145934228 |
|
|
| Report Abuse |
|
|
Vortilis
|
  |
| Joined: 06 Jul 2014 |
| Total Posts: 14163 |
|
|
| 13 Sep 2015 08:47 PM |
its hard to find out where the problem is because you seem to have sniped some of the script
http://www.roblox.com/Toms-Bait-Beans-item?id=292084570 http://www.roblox.com/DROP-IT-item?id=145934228 |
|
|
| Report Abuse |
|
|
|
| 13 Sep 2015 08:52 PM |
this is the whole script:
local productId = 26148174 local product2 = 26163592
local MP = game:getService("MarketplaceService"):PromptProductPurchase(player, 26148174)
script.Parent.MouseButton1Click:connect(function() MP end)
local DS = game:getService("DataStoreService"):GetDataStore("PurchaseHistory")
MP.ProcessReciept = function(RI) for i, player in ipairs(game.Players:getChildren()) do if player.UserId == RI.playerId then if RI.ProductId == productId then game.Workspace.CHARACTER.Humanoid.Walkspeed * 2 elseif RI.ProductId == product2 then player.Character.Health = 0 end end end local playerProductKey = "player_" . . RI.PlayerId . . "_purchased_" . . RI.PurchaseId
PurchaseHistory.IncrementAsync[playerProductKey, 1)
return Enum.ProductPurchaseDecision.PurchaseGranted end
I see nothing wrong with it
#code print ("Shots fired, ready for the war!") -- Currently working on Gui's |
|
|
| Report Abuse |
|
|
|
| 13 Sep 2015 08:55 PM |
......
#code print ("Shots fired, ready for the war!") -- Currently working on Gui's |
|
|
| Report Abuse |
|
|
Vortilis
|
  |
| Joined: 06 Jul 2014 |
| Total Posts: 14163 |
|
|
| 13 Sep 2015 08:56 PM |
ok till i got in studio i didnt realize how... incorrect it is. i cannot fix it, i don't know how to without doing something wrong that you might not want. perhaps tell me what you're trying to do and i can remake it? http://www.roblox.com/Toms-Bait-Beans-item?id=292084570 http://www.roblox.com/DROP-IT-item?id=145934228 |
|
|
| Report Abuse |
|
|
|
| 13 Sep 2015 08:57 PM |
Im trying to make it so when you click on my TextButton in my shopgui it will enable you to buy my developer product
#code print ("Shots fired, ready for the war!") -- Currently working on Gui's |
|
|
| Report Abuse |
|
|
|
| 13 Sep 2015 08:58 PM |
This is a child of my textbutton
#code print ("Shots fired, ready for the war!") -- Currently working on Gui's |
|
|
| Report Abuse |
|
|
|
| 13 Sep 2015 08:59 PM |
#code local productId = 26148174 #code local product2 = 26163592 #code #code script.Parent.MouseButton1Click:connect(function() #code game:getService("MarketplaceService"):PromptProductPurchase(player, 26148174) #code end) #code #code local DS = game:getService("DataStoreService"):GetDataStore("PurchaseHistory") #code #code DS.ProcessReciept = function(RI) #code for i, player in ipairs(game.Players:getChildren()) do #code if player.UserId == RI.playerId then #code if RI.ProductId == productId then #code game.Workspace.CHARACTER.Humanoid.Walkspeed * 2 #code #code elseif RI.ProductId == product2 then #code player.Character.Health = 0 #code #code end #code end #code end #code local playerProductKey = "player_" . . RI.PlayerId . . "_purchased_" . . RI.PurchaseId #code #code PurchaseHistory.IncrementAsync[playerProductKey, 1) #code #code return Enum.ProductPurchaseDecision.PurchaseGranted #code end
#code return |
|
|
| Report Abuse |
|
|
Vortilis
|
  |
| Joined: 06 Jul 2014 |
| Total Posts: 14163 |
|
|
| 13 Sep 2015 09:00 PM |
well here. script.Parent.MouseButton1Down:connect(function(Prompt) local assetId = 1337 game:GetService("MarketplaceService"):PromptProductPurchase(game.Players.LocalPlayer, assetId) end) that's the prompt, here is the rest http://wiki.roblox.com/index.php?title=API:Class/MarketplaceService look into it, i'm not an expert with the marketplaceservice.
http://www.roblox.com/Toms-Bait-Beans-item?id=292084570 http://www.roblox.com/DROP-IT-item?id=145934228 |
|
|
| Report Abuse |
|
|
|
| 13 Sep 2015 09:01 PM |
@sen
without the #code's please
#code print ("Shots fired, ready for the war!") -- Currently working on Gui's |
|
|
| Report Abuse |
|
|