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: A Prob...with a script

Previous Thread :: Next Thread 
A_en is not online. 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
CyberNugget is not online. CyberNugget
Joined: 04 Dec 2011
Total Posts: 568
23 Jun 2017 08:22 AM
You made the script huh?


Practise makes perfect.
Report Abuse
A_en is not online. 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
CyberNugget is not online. CyberNugget
Joined: 04 Dec 2011
Total Posts: 568
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 is not online. 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
CyberNugget is not online. CyberNugget
Joined: 04 Dec 2011
Total Posts: 568
23 Jun 2017 08:28 AM
Look in to leaderboards.


Practise makes perfect.
Report Abuse
A_en is not online. A_en
Joined: 11 May 2016
Total Posts: 79
23 Jun 2017 08:30 AM
I have made leaderboard with currency "Cash"


Report Abuse
CyberNugget is not online. CyberNugget
Joined: 04 Dec 2011
Total Posts: 568
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 is not online. A_en
Joined: 11 May 2016
Total Posts: 79
23 Jun 2017 08:40 AM
Its GUI


Report Abuse
CyberNugget is not online. CyberNugget
Joined: 04 Dec 2011
Total Posts: 568
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 is not online. A_en
Joined: 11 May 2016
Total Posts: 79
23 Jun 2017 08:44 AM
hich variable


Report Abuse
A_en is not online. A_en
Joined: 11 May 2016
Total Posts: 79
23 Jun 2017 08:45 AM
Which*


Report Abuse
emperormicah is not online. emperormicah
Joined: 31 May 2011
Total Posts: 3052
23 Jun 2017 08:47 AM
coff*
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