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 |
|
|
|
| 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 |
|
|
|
| 20 Jun 2015 07:03 PM |
| instead of promptproductpurchase use promptpurchase |
|
|
| Report Abuse |
|
|
Vexture
|
  |
| Joined: 27 Jan 2011 |
| Total Posts: 630 |
|
| |
|
Vexture
|
  |
| Joined: 27 Jan 2011 |
| Total Posts: 630 |
|
| |
|
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 |
|
|
| |
|