|
| 26 Jul 2012 02:10 AM |
Here's a line of my script
Roots[i].Changed:connect(function() print(Roots[i]) ObjectEdited() end)
Roots is a table containing EVERYTHING in game.At the end of the script,Roots is
cleared to nil.My problem is,how would I print the name of the object that
changed?print(Roots[i]) part.It won't work because Roots is nil. |
|
|
| Report Abuse |
|
|
|
| 26 Jul 2012 03:08 AM |
function onChanged(arg, name) ObjectEdited() end Roots[i].Changed:connect(function(prop) local name = Roots[i] onChanged(prop, name) end) |
|
|
| Report Abuse |
|
|
|
| 26 Jul 2012 03:38 AM |
| Nope.Well,thanks for trying but I found how now :3. |
|
|
| Report Abuse |
|
|
SN0X
|
  |
| Joined: 24 Oct 2011 |
| Total Posts: 7277 |
|
|
| 26 Jul 2012 03:41 AM |
Is .Changed broken?
When I try workspace.Changed nothing happens pl0x
I'm trying to make a function to wait less than 0.03 seconds using Workspace.DistributedGameTime. |
|
|
| Report Abuse |
|
|
Cheater
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 5258 |
|
|
| 26 Jul 2012 03:46 AM |
| You can use .Selected instead of .Changed. It's not the same but some sort of workaround. |
|
|
| Report Abuse |
|
|
| |
|
SN0X
|
  |
| Joined: 24 Oct 2011 |
| Total Posts: 7277 |
|
| |
|
| |
|