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
 

Re: Whoever Is Smart, Click This..

Previous Thread :: Next Thread 
Mezur is not online. Mezur
Joined: 29 Jun 2015
Total Posts: 3040
15 Dec 2015 12:02 AM
player = script.Parent.Parent.Parent.Parent.Parent
money = player.leaderstats.Gold -- Change Gold to the money you want to be used to buy the item
price = 1 -- Your price goes here
tool = game.Lighting:findFirstChild("God Pickaxe")


function buy()
if money.Value >= price then
money.Value = money.Value - price
local a = tool:clone()
a.Parent = player.Backpack
local b = tool:clone()
b.Parent = player.StarterGear

end
end
script.Parent.MouseButton1Down:connect(buy)

How do I change "God Pickaxe" to "Seeds" which is a leaderstat..
Report Abuse
Mezur is not online. Mezur
Joined: 29 Jun 2015
Total Posts: 3040
15 Dec 2015 12:07 AM
bump
Report Abuse
Mezur is not online. Mezur
Joined: 29 Jun 2015
Total Posts: 3040
15 Dec 2015 12:09 AM
bump2
Report Abuse
pinballboy7 is not online. pinballboy7
Joined: 12 Mar 2009
Total Posts: 1485
15 Dec 2015 12:10 AM
Replace "God Pickaxe" with "Seeds", probably.
Report Abuse
Mezur is not online. Mezur
Joined: 29 Jun 2015
Total Posts: 3040
15 Dec 2015 09:11 AM
Didn't work
Report Abuse
IoIiderp is not online. IoIiderp
Joined: 05 Feb 2012
Total Posts: 8613
15 Dec 2015 09:11 AM
Free models...
Report Abuse
Mezur is not online. Mezur
Joined: 29 Jun 2015
Total Posts: 3040
15 Dec 2015 02:30 PM
Bump
Report Abuse
ZappleOfficial is not online. ZappleOfficial
Joined: 18 Sep 2013
Total Posts: 1075
15 Dec 2015 02:37 PM
Wait so you want to change the leaderstat?
Report Abuse
ZappleOfficial is not online. ZappleOfficial
Joined: 18 Sep 2013
Total Posts: 1075
15 Dec 2015 02:38 PM
OK at the top change where it says Gold to Seeds
Report Abuse
Mezur is not online. Mezur
Joined: 29 Jun 2015
Total Posts: 3040
15 Dec 2015 06:00 PM
............
bump!
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