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: Buy In-game VIP with GUI Buttons?

Previous Thread :: Next Thread 
LuckyAura is not online. LuckyAura
Joined: 25 Jul 2009
Total Posts: 4444
04 Jan 2014 01:16 PM
How do you make an in-game vip using GUI Buttons? I've looked around and I can't find anything that does this. I've seen it in other games but I'm not sure how to do it. Please help! Thank you!
Report Abuse
LuckyAura is not online. LuckyAura
Joined: 25 Jul 2009
Total Posts: 4444
04 Jan 2014 03:27 PM
Bump..
Report Abuse
LuckyAura is not online. LuckyAura
Joined: 25 Jul 2009
Total Posts: 4444
05 Jan 2014 11:20 AM
Anyone?
Report Abuse
LuckyAura is not online. LuckyAura
Joined: 25 Jul 2009
Total Posts: 4444
07 Jan 2014 08:48 PM
:(
Report Abuse
McChicken72 is not online. McChicken72
Joined: 09 Feb 2013
Total Posts: 1115
07 Jan 2014 08:49 PM
i can make it for you T_T
Report Abuse
LuckyAura is not online. LuckyAura
Joined: 25 Jul 2009
Total Posts: 4444
08 Jan 2014 03:04 PM
Bump..
Report Abuse
triston220 is not online. triston220
Joined: 08 Mar 2010
Total Posts: 1861
08 Jan 2014 03:43 PM
You call this method: http://wiki.roblox.com/index.php/PromptPurchase_(Method)

Which then fires this event: http://wiki.roblox.com/index.php/PromptPurchaseFinished_(Event)
Report Abuse
McChicken72 is not online. McChicken72
Joined: 09 Feb 2013
Total Posts: 1115
08 Jan 2014 03:46 PM
hold on ill post the script BUT then add a regen for the VIP (so that it checks for there vip again)
Report Abuse
McChicken72 is not online. McChicken72
Joined: 09 Feb 2013
Total Posts: 1115
08 Jan 2014 03:47 PM
Heres the script

local cleanSweepId = 101109685


script.Parent.ClickDetector.MouseClick:connect(function(player)
Game:GetService("MarketplaceService"):PromptPurchase(player, cleanSweepId)
end)


oh BTW put it in a brick
Report Abuse
shonclub is not online. shonclub
Joined: 05 Sep 2009
Total Posts: 1331
08 Jan 2014 03:47 PM
There's a plugin that roblox made
Report Abuse
McChicken72 is not online. McChicken72
Joined: 09 Feb 2013
Total Posts: 1115
08 Jan 2014 03:48 PM
or edit it for a GUI or make it pop up in a GUI from clicking the brick XD
Report Abuse
McChicken72 is not online. McChicken72
Joined: 09 Feb 2013
Total Posts: 1115
08 Jan 2014 03:50 PM
or here i made it for you and tested =D



local cleanSweepId = 101109685
script.Parent.MouseButton1Click:connect(function(player)
Game:GetService("MarketplaceService"):PromptPurchase(player, cleanSweepId)
end)



It WORKS!
Report Abuse
McChicken72 is not online. McChicken72
Joined: 09 Feb 2013
Total Posts: 1115
08 Jan 2014 03:51 PM
Now please not the first script i posted is a BRICK CLICK (like click a brick 2 buy) and the SECOND is a GUI button script.
Report Abuse
LuckyAura is not online. LuckyAura
Joined: 25 Jul 2009
Total Posts: 4444
09 Jan 2014 05:19 PM
@McChicken72 That is the exact script I was usually acting. It's a TextButton
Report Abuse
LuckyAura is not online. LuckyAura
Joined: 25 Jul 2009
Total Posts: 4444
09 Jan 2014 05:19 PM
*Using actually
Report Abuse
LuckyAura is not online. LuckyAura
Joined: 25 Jul 2009
Total Posts: 4444
09 Jan 2014 05:22 PM
Got these errors in the Output:
18:22:15.831 - MarketplaceService:PromptPurchase() player should be of type Player, but is of type nil
18:22:15.832 - Script 'Players.Player1.PlayerGui.MainGUI.Main.C6.BuyRex (Not Worki', Line 3
18:22:15.833 - stack end
18:22:15.833 - Disconnected event because of exception
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