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
|
  |
| Joined: 25 Jul 2009 |
| Total Posts: 4444 |
|
| |
|
LuckyAura
|
  |
| Joined: 25 Jul 2009 |
| Total Posts: 4444 |
|
| |
|
LuckyAura
|
  |
| Joined: 25 Jul 2009 |
| Total Posts: 4444 |
|
| |
|
| |
|
LuckyAura
|
  |
| Joined: 25 Jul 2009 |
| Total Posts: 4444 |
|
| |
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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
|
  |
| Joined: 05 Sep 2009 |
| Total Posts: 1331 |
|
|
| 08 Jan 2014 03:47 PM |
| There's a plugin that roblox made |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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
|
  |
| 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
|
  |
| Joined: 25 Jul 2009 |
| Total Posts: 4444 |
|
| |
|
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 |
|
|