0_1195
|
  |
| Joined: 21 Dec 2011 |
| Total Posts: 268 |
|
|
| 12 Aug 2016 01:47 PM |
I made a purchase in studio and PromptPurchaseFinished didn't fire.
marketPlace.PromptPurchaseFinished:connect(function(player, product, purchased) if Purchased then print("bought") end end)
\_(siggy)_/ |
|
|
| Report Abuse |
|
|
Trioxide
|
  |
| Joined: 29 Mar 2011 |
| Total Posts: 32902 |
|
| |
|
|
| 12 Aug 2016 01:55 PM |
local MarketplaceService = game:GetService("MarketplaceService") local id = 000000 <---- Your Id
game:GetService("MarketplaceService"):PromptPurchase(player ,id)
|
|
|
| Report Abuse |
|
|
|
| 12 Aug 2016 01:56 PM |
| wait is that what you wanted? |
|
|
| Report Abuse |
|
|
0_1195
|
  |
| Joined: 21 Dec 2011 |
| Total Posts: 268 |
|
|
| 12 Aug 2016 01:58 PM |
@Goml No
@Trio Still didn't work.
\_(siggy)_/ |
|
|
| Report Abuse |
|
|
|
| 12 Aug 2016 02:19 PM |
--local players = game.Players:GetPlayers (You dont need this line tho) local player = game.Players.LocalPlayer
probably u need to make a variable for Marketplace
heres what u can do:
local MarketplaceService = game:GetService("MarketplaceService")
u set a PromptPurchase to an object
then u do
game:GetService("MarketplaceService").PromptPurchaseFinished:connect(function(player,product,purchased) if Purchased then print (player.Name.." has purchased something") This will print the players name if they bought something in the output end
If this doesnt work then i got nothin or maybe something was mispelt |
|
|
| Report Abuse |
|
|