A_en
|
  |
| Joined: 11 May 2016 |
| Total Posts: 79 |
|
|
| 23 Jun 2017 08:18 AM |
I co- *couth* made this script
player = script.Parent.Parent.Parent.Parent.Parent money = player.leaderstats.cash price = 0 tool = game.Lighting:findFirstChild("Bacon")
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)
And It says "leaderstats in Players not found" Help me
|
|
|
| Report Abuse |
|
|
|
| 23 Jun 2017 08:22 AM |
You made the script huh?
Practise makes perfect. |
|
|
| Report Abuse |
|
|
A_en
|
  |
| Joined: 11 May 2016 |
| Total Posts: 79 |
|
|
| 23 Jun 2017 08:23 AM |
Fix it... I was trying to fix it for 2 hours yesterday and it didnt work
|
|
|
| Report Abuse |
|
|
|
| 23 Jun 2017 08:24 AM |
I don't know if I should? Seems like a free model :D
Practise makes perfect. |
|
|
| Report Abuse |
|
|
A_en
|
  |
| Joined: 11 May 2016 |
| Total Posts: 79 |
|
|
| 23 Jun 2017 08:26 AM |
| It is. But my coding lvl is only ## ( ͡° ͜ʖ ͡°) not 9000. |
|
|
| Report Abuse |
|
|
|
| 23 Jun 2017 08:28 AM |
Look in to leaderboards.
Practise makes perfect. |
|
|
| Report Abuse |
|
|
A_en
|
  |
| Joined: 11 May 2016 |
| Total Posts: 79 |
|
|
| 23 Jun 2017 08:30 AM |
I have made leaderboard with currency "Cash"
|
|
|
| Report Abuse |
|
|
|
| 23 Jun 2017 08:32 AM |
Put it in a local script and change player = script.Parent.Parent.Parent.Parent.Parent to
player = game.Players.LocalPlayer
Then place the script in the starter pack.
Practise makes perfect. |
|
|
| Report Abuse |
|
|
A_en
|
  |
| Joined: 11 May 2016 |
| Total Posts: 79 |
|
| |
|
|
| 23 Jun 2017 08:42 AM |
Even better, just change that variable and that should fix the issue.
Practise makes perfect. |
|
|
| Report Abuse |
|
|
A_en
|
  |
| Joined: 11 May 2016 |
| Total Posts: 79 |
|
| |
|
A_en
|
  |
| Joined: 11 May 2016 |
| Total Posts: 79 |
|
| |
|
| |
|