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: Why doesn't this work?

Previous Thread :: Next Thread 
fahmisack123 is not online. fahmisack123
Joined: 04 Jan 2013
Total Posts: 581
07 Mar 2014 11:40 AM
Hey there. I have this script. Im not sure if I'm missing anything or if I messed it up. When I tested it, the purchase was a success, but the Cash value on the leaderboard didn't increase. Can someone help?

~.~.~.~. THE SCRIPT .~.~.~.~

local buyButton = game.Workspace.BuyButton.SurfaceGui.TextButton
local productId = 19245262

buyButton.MouseButton1Click:connect(function()
Game:GetService("MarketplaceService"):PromptProductPurchase(game.Players.LocalPlayer, productId)
game.Players.LocalPlayer.leaderboard.Cash.Value = game.Players.LocalPlayer.leaderboard.Cash.Value + 1000
end)

Report Abuse
fahmisack123 is not online. fahmisack123
Joined: 04 Jan 2013
Total Posts: 581
07 Mar 2014 11:41 AM
BTW, this is the Developer Products update.
Report Abuse
fahmisack123 is not online. fahmisack123
Joined: 04 Jan 2013
Total Posts: 581
07 Mar 2014 11:51 AM
B1
Report Abuse
fahmisack123 is not online. fahmisack123
Joined: 04 Jan 2013
Total Posts: 581
07 Mar 2014 12:05 PM
B2
Report Abuse
fahmisack123 is not online. fahmisack123
Joined: 04 Jan 2013
Total Posts: 581
07 Mar 2014 05:12 PM
Any Help?
Report Abuse
error9999 is not online. error9999
Joined: 05 Sep 2009
Total Posts: 1593
07 Mar 2014 05:17 PM
is this a local script? c:
Report Abuse
error9999 is not online. error9999
Joined: 05 Sep 2009
Total Posts: 1593
07 Mar 2014 05:19 PM
btw, are you sure it's leaderboard, isn't it leaderstats? c:
Report Abuse
fahmisack123 is not online. fahmisack123
Joined: 04 Jan 2013
Total Posts: 581
07 Mar 2014 10:51 PM
What's wrong if it's in a LocalScript? Should it be in a normal script?
Report Abuse
error9999 is not online. error9999
Joined: 05 Sep 2009
Total Posts: 1593
08 Mar 2014 03:37 PM
are you sure about that leaderboard thing?

if the stats show up at playetlist, it's leaderstats c;
Report Abuse
fahmisack123 is not online. fahmisack123
Joined: 04 Jan 2013
Total Posts: 581
09 Mar 2014 10:20 PM
Thanks for the help, error, It worked!
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