jakej78b
|
  |
| Joined: 09 Mar 2011 |
| Total Posts: 813 |
|
|
| 11 May 2013 06:34 PM |
Ok, so basically what I'm trying to do here is make a GUI that people can click the button, it brings up the marketplace, then if they decide to buy it, a message pops up that says player has purchased admin! It does not work and I don't know why, please help.
player = Game.Players.LocalPlayer function Clicked() script.Parent.Parent.Visible = false Game:GetService("MarketplaceService"):PromptPurchase(player, 74912849) if Game:GetService("MarketplaceService"):PromptPurchaseFinished(player, 74912849, true) then m = Instance.new("Message") m.Parent = Game.Workspace m.Text = player .. "has just purchased admin!" wait(5) m:Remove() end end
script.Parent.Selected:connect(Clicked) |
|
|
| Report Abuse |
|
|
|
| 11 May 2013 06:40 PM |
| The parts of the script is wrong like onClick. |
|
|
| Report Abuse |
|
|
jakej78b
|
  |
| Joined: 09 Mar 2011 |
| Total Posts: 813 |
|
|
| 11 May 2013 06:42 PM |
| What? This is a GUI not a brick, The name of the function has no relation to whether or not it works last time I checked... |
|
|
| Report Abuse |
|
|
|
| 11 May 2013 07:14 PM |
| Is this script is the same from a Store GUI in ROBLOX Battle? |
|
|
| Report Abuse |
|
|
jakej78b
|
  |
| Joined: 09 Mar 2011 |
| Total Posts: 813 |
|
|
| 11 May 2013 07:55 PM |
| Um...no, I made the script myself based off of what I saw in the Object browser. Even if it was, why is that relevant, can I just get some real help please? |
|
|
| Report Abuse |
|
|
Desperian
|
  |
| Joined: 07 Feb 2012 |
| Total Posts: 3371 |
|
|
| 11 May 2013 07:56 PM |
| 'PromptPurchaseFinished' is an event, not a method, if I'm not mistaken. |
|
|
| Report Abuse |
|
|
1Topcop
|
  |
| Joined: 09 Jun 2009 |
| Total Posts: 6635 |
|
|
| 11 May 2013 08:01 PM |
| Yes, PromptPurchaseFinished is an event. |
|
|
| Report Abuse |
|
|
jakej78b
|
  |
| Joined: 09 Mar 2011 |
| Total Posts: 813 |
|
|
| 11 May 2013 08:02 PM |
| Ok, how Would I make it to where if someone purchased the item it would send a message? Or is that even possible? |
|
|
| Report Abuse |
|
|
jakej78b
|
  |
| Joined: 09 Mar 2011 |
| Total Posts: 813 |
|
|
| 11 May 2013 08:20 PM |
| Oh, I think bool PlayerOwnsAsset(Instance player, int assetId) would work, however I have another odd problem, I loose connection to the game everytime that I use the MarketPlaceService on a GUI. but oh well.. |
|
|
| Report Abuse |
|
|
|
| 14 Jul 2013 05:44 PM |
| Does anyone know what the proper script for this? |
|
|
| Report Abuse |
|
|