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: PromptProductPurchase Error?

Previous Thread :: Next Thread 
Discern is not online. Discern
Joined: 02 Feb 2013
Total Posts: 331
18 Apr 2014 08:50 AM
So I have edited this script forever, and it won't work. Can someone please tell me why?

The window that pops up to ask you to buy something won't pop up when you press the GUI.

This script is in a LocalScript, located in a TextButton in a player's PlayerGui.

script.Parent.Parent.Parent.Parent is the Player.

The productId is a T-Shirt.

buyButton is a TextButton.

I HAVE tried putting this in a regular script in the same spot, but still the same outcome.

Script:

local MarketplaceService = game:GetService("MarketplaceService")
local buyButton = script.Parent
local productId = 153902087

buyButton.MouseButton1Click:connect(function()
MarketplaceService:PromptProductPurchase(script.Parent.Parent.Parent.Parent, productId, 0)
end)

All help is appreciated. Thanks.
Report Abuse
Discern is not online. Discern
Joined: 02 Feb 2013
Total Posts: 331
18 Apr 2014 09:04 AM
Bump
Report Abuse
Discern is not online. Discern
Joined: 02 Feb 2013
Total Posts: 331
18 Apr 2014 09:11 AM
Bump2
Report Abuse
DataStore is not online. DataStore
Joined: 07 Feb 2012
Total Posts: 8540
18 Apr 2014 09:24 AM
As I indicated on the other thread, PromptProductPurchase is used to sell developer products (the items which can be sold more than once). You need to use PromptPurchase for things like T-Shirts, Pants, Shirts, etc.
Report Abuse
Discern is not online. Discern
Joined: 02 Feb 2013
Total Posts: 331
18 Apr 2014 09:30 AM
Oh. *Facepalm* I am so clueless sometimes.

Thanks for your help, and sorry for being such an idiot.
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