|
| 16 Oct 2013 06:48 AM |
which one would work better
a.Value.Changed:connect(function()
or
a.Changed:connect(fucntion() |
|
|
| Report Abuse |
|
|
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
|
  |
| 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
|
  |
| 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
|
  |
| 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 |
|
|