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
|
  |
| Joined: 29 Jun 2015 |
| Total Posts: 3040 |
|
| |
|
Mezur
|
  |
| Joined: 29 Jun 2015 |
| Total Posts: 3040 |
|
| |
|
|
| 15 Dec 2015 12:10 AM |
| Replace "God Pickaxe" with "Seeds", probably. |
|
|
| Report Abuse |
|
|
Mezur
|
  |
| Joined: 29 Jun 2015 |
| Total Posts: 3040 |
|
| |
|
IoIiderp
|
  |
| Joined: 05 Feb 2012 |
| Total Posts: 8613 |
|
| |
|
Mezur
|
  |
| Joined: 29 Jun 2015 |
| Total Posts: 3040 |
|
| |
|
|
| 15 Dec 2015 02:37 PM |
| Wait so you want to change the leaderstat? |
|
|
| Report Abuse |
|
|
|
| 15 Dec 2015 02:38 PM |
| OK at the top change where it says Gold to Seeds |
|
|
| Report Abuse |
|
|
Mezur
|
  |
| Joined: 29 Jun 2015 |
| Total Posts: 3040 |
|
| |
|