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: "ingame purchases are temporarily disabled"

Previous Thread :: Next Thread 
Vexture is not online. Vexture
Joined: 27 Jan 2011
Total Posts: 630
20 Jun 2015 07:01 PM
local plyr = game.Players.LocalPlayer
local plyrui = plyr:WaitForChild("PlayerGui")
print("hi")
local mainui = plyrui:WaitForChild("pass")
print("2")
local mainframe = mainui:WaitForChild("main")
print("3")
local passframe = mainframe:WaitForChild("Frame")
print("4")
local button = passframe:WaitForChild("TextButton")
print("5")
local marketplace = game:GetService("MarketplaceService")
print("6")
local productId = 260765153
print("7")

button.MouseButton1Click:connect(function()
print("clicked")
marketplace:PromptProductPurchase(plyr,productId)
end)



this is in a local script.
i don't see what's wrong with it.
i look in other games and see that purchases are not disabled.
this is a gamepass.
halp pls.
Report Abuse
BobserLuck is not online. BobserLuck
Joined: 09 Mar 2012
Total Posts: 653
20 Jun 2015 07:02 PM
Well that's just it, try putting it in a regular script, if need be you can create a remote event but I don't think it will work in a local script.
Report Abuse
AbstractMadness is not online. AbstractMadness
Joined: 22 Dec 2014
Total Posts: 20425
20 Jun 2015 07:03 PM
instead of promptproductpurchase use promptpurchase
Report Abuse
Vexture is not online. Vexture
Joined: 27 Jan 2011
Total Posts: 630
20 Jun 2015 07:06 PM
you, sir, are a genius.
Report Abuse
Vexture is not online. Vexture
Joined: 27 Jan 2011
Total Posts: 630
20 Jun 2015 07:08 PM
*ma'am
Report Abuse
Usering is not online. Usering
Joined: 18 Aug 2012
Total Posts: 10281
20 Jun 2015 07:17 PM
PromptProductPurchase is ONLY FOR DEVELOPER PRODUCTS
PromptPurchase is FOR EVERYTHING ELSE BESIDES DEVELOPER PRODUCTS

just remember that :P
Report Abuse
AbstractMadness is not online. AbstractMadness
Joined: 22 Dec 2014
Total Posts: 20425
20 Jun 2015 07:26 PM
thank u thank u
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