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: .changed question

Previous Thread :: Next Thread 
TheLittleEgg is not online. TheLittleEgg
Joined: 08 Feb 2012
Total Posts: 262
16 Oct 2013 06:48 AM
which one would work better

a.Value.Changed:connect(function()

or

a.Changed:connect(fucntion()
Report Abuse
zars15 is not online. zars15
Joined: 10 Nov 2008
Total Posts: 9999
16 Oct 2013 08:28 AM
Value as object or property?

If value is property then:

a.Changed

if value is object then:

a.Value.Changed
Report Abuse
R8N is not online. R8N
Joined: 07 Aug 2013
Total Posts: 1164
16 Oct 2013 09:18 AM
a.Changed:connect(function(p)
if p:lower()=="value" then
print(a.Value)
end
end)
Report Abuse
zars15 is not online. zars15
Joined: 10 Nov 2008
Total Posts: 9999
16 Oct 2013 09:22 AM
@R8N. This might sound weird, but .Changed event on values works bit different. It's argument is value itself, not it's name, unlike for other objects.
Report Abuse
zars15 is not online. zars15
Joined: 10 Nov 2008
Total Posts: 9999
16 Oct 2013 09:22 AM
In case proof is needed: http://wiki.roblox.com/index.php/Changed
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