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: Market place

Previous Thread :: Next Thread 
Plaier1 is not online. Plaier1
Joined: 02 Jun 2009
Total Posts: 221
02 Mar 2014 09:09 PM
I don't know why this won't work, it says roblox is preparing maintenance after you try to buy the developer product.


local Id = 19197063

local Players, MpS = Game:GetService('Players'), Game:GetService('MarketplaceService');
local Player = Players.LocalPlayer;

function buy()
MpS:PromptProductPurchase(Player, Id)
end;

MpS.PromptProductPurchaseFinished:connect(function(player, assetId, purchased)
if (assetId == Id and purchased and player == Player.userId) then
Player.StoredPoints = Player.StoredPoints+100
end;
end);

script.Parent.MouseButton1Click:connect(buy);
Report Abuse
FreeScriptMaker is not online. FreeScriptMaker
Joined: 29 Nov 2013
Total Posts: 2275
02 Mar 2014 09:11 PM
PromptProductPurchaseFinished is deprecated.
Report Abuse
Plaier1 is not online. Plaier1
Joined: 02 Jun 2009
Total Posts: 221
02 Mar 2014 09:13 PM
Awe crap you're right, thanks.
Report Abuse
Plaier1 is not online. Plaier1
Joined: 02 Jun 2009
Total Posts: 221
02 Mar 2014 09:17 PM
For time sake can someone show me how to do it now.
Report Abuse
FreeScriptMaker is not online. FreeScriptMaker
Joined: 29 Nov 2013
Total Posts: 2275
02 Mar 2014 09:17 PM
Use this instead.

http://wiki.roblox.com/index.php?title=ProcessReceipt_(Callback)
Report Abuse
Plaier1 is not online. Plaier1
Joined: 02 Jun 2009
Total Posts: 221
02 Mar 2014 10:15 PM
This doesn't even make the purchase screen pop up.

local Id = 19197063

local MpS = Game:GetService('MarketplaceService')
local Player = Players.LocalPlayer

function buy()
MpS:PromptProductPurchase(Player, Id)
end

MpS.ProcessReceipt = function(receiptInfo)
if (receiptInfo.ProductId == Id and receiptInfo.PlayerId == Player.userId) then
Player.StoredPoints = Player.StoredPoints+100
end
return Enum.ProductPurchaseDecision.PurchaseGranted
end

script.Parent.MouseButton1Click:connect(buy)
Report Abuse
FreeScriptMaker is not online. FreeScriptMaker
Joined: 29 Nov 2013
Total Posts: 2275
02 Mar 2014 10:22 PM
There is probably an error in the script.
Report Abuse
Plaier1 is not online. Plaier1
Joined: 02 Jun 2009
Total Posts: 221
02 Mar 2014 10:54 PM
ClientLuaDialogRequested is not a valid member of MarketplaceService
Report Abuse
Plaier1 is not online. Plaier1
Joined: 02 Jun 2009
Total Posts: 221
02 Mar 2014 10:55 PM
ProcessReceipt is not a valid member of MarketplaceService

Those are the errors it gives.
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