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
 

This doesn't work!!

Previous Thread :: Next Thread 
TrainedDoorman is not online. TrainedDoorman
Joined: 16 Jun 2009
Total Posts: 67
02 Mar 2014 10:54 PM
assetId = 19181607
player = game.Players.LocalPlayer

script.Parent.MouseButton1Down:connect(function()
game:GetService("MarketplaceService"):PromptProductPurchase(player, assetId)
end)

game:GetService("MarketplaceService").PromptPurchaseFinished:connect(function(player, assetId, isPurchased)
if isPurchased then
game.Players.LocalPlayer.leaderstats.Points.Value = game.Players.LocalPlayer.leaderstats.Points.Value + 100
end
end)
Report Abuse
TrainedDoorman is not online. TrainedDoorman
Joined: 16 Jun 2009
Total Posts: 67
02 Mar 2014 11:26 PM
Bump
Report Abuse
Draphant is not online. Draphant
Joined: 13 May 2012
Total Posts: 700
02 Mar 2014 11:55 PM
make sure its in a local script, and post any errors you got
Report Abuse
TrainedDoorman is not online. TrainedDoorman
Joined: 16 Jun 2009
Total Posts: 67
03 Mar 2014 12:02 AM
It is a LocalScript, and I'm not getting any errors
Report Abuse
FreeScriptMaker is not online. FreeScriptMaker
Joined: 29 Nov 2013
Total Posts: 2275
03 Mar 2014 12:42 AM
PromptPurchaseFinished is deprecated.
Report Abuse
BloxianBoy1234 is not online. BloxianBoy1234
Joined: 27 Oct 2013
Total Posts: 1006
03 Mar 2014 01:20 AM
I am looking for a script like that but it never works for me. But where is the part that you sending to an onClicked button on the GUI or something...
Report Abuse
TrainedDoorman is not online. TrainedDoorman
Joined: 16 Jun 2009
Total Posts: 67
03 Mar 2014 06:39 AM
PromptPurchaseFinished is not deprecated, PromptProductPurchaseFinished is.
Report Abuse
BloxianBoy1234 is not online. BloxianBoy1234
Joined: 27 Oct 2013
Total Posts: 1006
03 Mar 2014 12:37 PM
Where can this script go? In StarterPack or a part can (specially SurfaceGui, ScreenGui)?
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