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: Help

Previous Thread :: Next Thread 
ThrashingThunder is not online. ThrashingThunder
Joined: 03 Oct 2011
Total Posts: 2388
15 Jan 2014 10:24 AM
buy = script.Parent.Parent.Parent.Parent.leaderstats.KOs
function onClicked()
if buy >= 0 then
item = game.Lighting.Sword:Clone()
item.Parent = script.Parent.Parent.Parent.Parent.Backpack

end
end
script.Parent.MouseButton1Click:connect(onClicked)

Output "leaderstats" is not a valid member of Player.

I tested it in studio, and I saw that leaderstats WAS a valid member..
Report Abuse
ThrashingThunder is not online. ThrashingThunder
Joined: 03 Oct 2011
Total Posts: 2388
15 Jan 2014 10:27 AM
This is proper coding.
Report Abuse
ThrashingThunder is not online. ThrashingThunder
Joined: 03 Oct 2011
Total Posts: 2388
15 Jan 2014 10:29 AM
B-bump
u-up
m-my
p-post
Report Abuse
smiley599 is not online. smiley599
Joined: 23 Jan 2010
Total Posts: 21869
15 Jan 2014 11:10 AM
It takes a while to be made.

Put :WaitForChild("leaderstats") instead.
Report Abuse
ThrashingThunder is not online. ThrashingThunder
Joined: 03 Oct 2011
Total Posts: 2388
15 Jan 2014 12:56 PM
Got it working. I also forgot to put

KOs.Value


Thx tho
Report Abuse
smiley599 is not online. smiley599
Joined: 23 Jan 2010
Total Posts: 21869
15 Jan 2014 02:15 PM
Ooh you dont wanna do that.

If you are gonna do '.Value' at the end, move the buy variable to after the function.
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