Voile
|
  |
| Joined: 19 Dec 2011 |
| Total Posts: 7598 |
|
|
| 09 Jan 2014 09:57 PM |
-- this is a script, and inside of it theres a local script
localscript = script.LocalScript
function umpalumpa() print("hi") end
localscript.Parent.Changed:connect(umpalumpa)
-- would that print umpalumpa |
|
|
| Report Abuse |
|
|
Voile
|
  |
| Joined: 19 Dec 2011 |
| Total Posts: 7598 |
|
|
| 09 Jan 2014 09:58 PM |
| if the localscript's place changed??? |
|
|
| Report Abuse |
|
|
|
| 09 Jan 2014 11:27 PM |
no
you need to check the object for changes, the property that changes is the parent, therefore the object still changed |
|
|
| Report Abuse |
|
|
lolb3
|
  |
| Joined: 16 Jan 2010 |
| Total Posts: 2268 |
|
|
| 09 Jan 2014 11:33 PM |
what ss is saying is that you'd do this
loclscript.Changed:connect(function(prop) --prop = property if prop == "Parent" then umpalumpa() end end) |
|
|
| Report Abuse |
|
|