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
 

PromptPurchaseFinished doesn't fire in Studio?

Previous Thread :: Next Thread 
0_1195 is not online. 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 is not online. Trioxide
Joined: 29 Mar 2011
Total Posts: 32902
12 Aug 2016 01:53 PM
Decapitalize "Purchased"
Report Abuse
Gomlsauresrex is not online. Gomlsauresrex
Joined: 25 Mar 2016
Total Posts: 3588
12 Aug 2016 01:55 PM
local MarketplaceService = game:GetService("MarketplaceService")
local id = 000000 <---- Your Id

game:GetService("MarketplaceService"):PromptPurchase(player ,id)

Report Abuse
Gomlsauresrex is not online. Gomlsauresrex
Joined: 25 Mar 2016
Total Posts: 3588
12 Aug 2016 01:56 PM
wait is that what you wanted?
Report Abuse
0_1195 is not online. 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
Gomlsauresrex is not online. Gomlsauresrex
Joined: 25 Mar 2016
Total Posts: 3588
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
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