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 » Scripting Helpers
Home Search
 

Re: MarketPlace Service GUI Help

Previous Thread :: Next Thread 
jakej78b is not online. 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
BenHall4433 is not online. BenHall4433
Joined: 10 Oct 2011
Total Posts: 842
11 May 2013 06:40 PM
The parts of the script is wrong like onClick.
Report Abuse
jakej78b is not online. 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
BenHall4433 is not online. BenHall4433
Joined: 10 Oct 2011
Total Posts: 842
11 May 2013 07:14 PM
Is this script is the same from a Store GUI in ROBLOX Battle?
Report Abuse
jakej78b is not online. 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 is not online. 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 is not online. 1Topcop
Joined: 09 Jun 2009
Total Posts: 6635
11 May 2013 08:01 PM
Yes, PromptPurchaseFinished is an event.
Report Abuse
jakej78b is not online. 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 is not online. 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
BenHall4433 is not online. BenHall4433
Joined: 10 Oct 2011
Total Posts: 842
14 Jul 2013 05:44 PM
Does anyone know what the proper script for this?
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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