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: Why are people afraid of my help request post?

Previous Thread :: Next Thread 
Navydev is not online. Navydev
Joined: 21 Feb 2012
Total Posts: 274
26 Feb 2012 03:59 PM
Seriously, its only about values.
http://www.roblox.com/Forum/ShowPost.aspx?PostID=63501845
Report Abuse
stravant is not online. stravant
Forum Moderator
Joined: 22 Oct 2007
Total Posts: 2893
26 Feb 2012 04:17 PM
The problem is that the contents of the `val` variable is a number. Numbers are a basic Lua type and they obviously have no `Changed` event in them, they can't change, the number 1 will always be the number 1.

You need to get the changed event on the NumberValue object, not the number:

obj:findFirstChild("UpgP").Changed:connect(function()
Report Abuse
Navydev is not online. Navydev
Joined: 21 Feb 2012
Total Posts: 274
26 Feb 2012 04:24 PM
Thanks stravant. I forgot about that. :/
Report Abuse
stravant is not online. stravant
Forum Moderator
Joined: 22 Oct 2007
Total Posts: 2893
26 Feb 2012 04:36 PM
In the future it may help to think of the `=` operator as a construct which takes a value out of one box and puts it into another box. That is to say that it does not create any inherent link between the expressions on either side of the `=` operator, it simply moves things around.
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