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 » Scripters
Home Search
 

Re: What's it called..?

Previous Thread :: Next Thread 
mulJR is not online. mulJR
Joined: 25 Dec 2012
Total Posts: 305
29 Jan 2015 11:58 AM
Where if you click a brick it gives you a screen asking you if you want to purchase that game pass that featured on it.Bad explanation and probably wrong forum..
Report Abuse
Crythox is not online. Crythox
Joined: 03 Oct 2011
Total Posts: 1188
29 Jan 2015 11:59 AM
MarketplaceService:PromptProductPurchase
Report Abuse
mulJR is not online. mulJR
Joined: 25 Dec 2012
Total Posts: 305
29 Jan 2015 12:03 PM
It's for currency how do i change it so i can do it for game passes?
Report Abuse
Crythox is not online. Crythox
Joined: 03 Oct 2011
Total Posts: 1188
29 Jan 2015 12:09 PM
MarketplaceService:PromptPurchase(id of gamepass,player)

Report Abuse
mulJR is not online. mulJR
Joined: 25 Dec 2012
Total Posts: 305
29 Jan 2015 12:21 PM
would this work,


local gamepassId = [Gamepass ID]

--Prompts the player to purchase the GearItem
script.Parent.ClickDetector.MouseClick:connect(function(player)
Game:GetService("MarketplaceService"):PromptPurchase(player, gamepassId)
end)
Itson a surface gui textbox

or this?

local id = 0
local player = game.Players.LocalPlayer

script.Parent.MouseButton1Click:connect(function()
if script.Parent.Text == "BUY" then
game:GetService("MarketplaceService"):PromptPurchase(player,id)
end
end)
Report Abuse
Crythox is not online. Crythox
Joined: 03 Oct 2011
Total Posts: 1188
29 Jan 2015 12:32 PM
Change 'id' to the variable that holds the id of the gamepass, or change it to the id of the gamepass directly. with no variable.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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