|
| 27 Jan 2013 09:50 AM |
function removed(part,target) if part.Name == "Left Leg" then--HERE start(target,0,-2,-1) end end
workspace.ChildAdded:connect(function (add) if add:findFirstChild("Humanoid") ~= nil then add.Humanoid.Changed:connect(function () change(add) end) add.ChildRemoved:connect(function () removed(part,add) end) end end)
i dont undestend whats wrong with it D: |
|
|
| Report Abuse |
|
|
|
| 27 Jan 2013 09:51 AM |
function removed(part,target) if part.Name == "Left Leg" then--HERE start(target,0,-2,-1) end end
workspace.ChildAdded:connect(function (add) if add:findFirstChild("Humanoid") ~= nil then add.Humanoid.Changed:connect(function () change(add) end) add.ChildRemoved:connect(removed(part,add)) end end) |
|
|
| Report Abuse |
|
|
Combrad
|
  |
| Joined: 18 Jul 2009 |
| Total Posts: 11025 |
|
|
| 27 Jan 2013 09:52 AM |
| Can you paste what start() is? |
|
|
| Report Abuse |
|
|
|
| 27 Jan 2013 09:54 AM |
| Woodstauk4, im still getting the error :c |
|
|
| Report Abuse |
|
|
Combrad
|
  |
| Joined: 18 Jul 2009 |
| Total Posts: 11025 |
|
|
| 27 Jan 2013 09:55 AM |
Woodstauk didn't fix your script. Can you paste the whole script? Or EVERYTHING that is relevant to that section. |
|
|
| Report Abuse |
|
|
|
| 27 Jan 2013 09:56 AM |
sajdhwenjfd
function removed(part,target) if part.Name == "Left Leg" then--HERE start(target,0,-2,-1) end end
workspace.ChildAdded:connect(function (add) if add:findFirstChild("Humanoid") ~= nil then add.Humanoid.Changed:connect(function () change(add) end) add.ChildRemoved:connect(removed) end end) |
|
|
| Report Abuse |
|
|
Combrad
|
  |
| Joined: 18 Jul 2009 |
| Total Posts: 11025 |
|
|
| 27 Jan 2013 09:57 AM |
| That should fix it, not how I would of done it though. |
|
|
| Report Abuse |
|
|
|
| 27 Jan 2013 09:59 AM |
| now there is no error but it wont do anything, ill see if i can figer it out, thanks btw :D |
|
|
| Report Abuse |
|
|
|
| 27 Jan 2013 10:22 AM |
add.ChildRemoved:connect(function () removed(part,add) end)
On this line, you make a reference to "part" for the first time. You never defined it. |
|
|
| Report Abuse |
|
|
|
| 27 Jan 2013 10:23 AM |
I think what you meant to do was
add.ChildRemoved:connect(function (part) removed(part,add) end) |
|
|
| Report Abuse |
|
|