Alt1515
|
  |
| Joined: 07 Feb 2015 |
| Total Posts: 55 |
|
|
| 21 Feb 2015 06:25 PM |
script.Changed:connect(function() if script.Parent == "row2" then for i = 4.5,-71.5,-.5 do local log = script.Parent.Parent:FindFirstChild("log1") log.Position = log.Position+Vector3.new(i, 0, 0, 0) end end end)
I'm trying to run this when the scripts parent is changed, but it doesn't output anything. |
|
|
| Report Abuse |
|
|
cosmo9512
|
  |
| Joined: 20 Jun 2013 |
| Total Posts: 1407 |
|
| |
|
| |
|
cosmo9512
|
  |
| Joined: 20 Jun 2013 |
| Total Posts: 1407 |
|
| |
|
| |
|
cosmo9512
|
  |
| Joined: 20 Jun 2013 |
| Total Posts: 1407 |
|
|
| 21 Feb 2015 06:29 PM |
alright
.AncestryChanged should work. |
|
|
| Report Abuse |
|
|
Alt1515
|
  |
| Joined: 07 Feb 2015 |
| Total Posts: 55 |
|
|
| 21 Feb 2015 06:32 PM |
| Yep thanks, going to look into .AncestryChanged |
|
|
| Report Abuse |
|
|