mark298
|
  |
| Joined: 24 Oct 2008 |
| Total Posts: 1264 |
|
|
| 15 Oct 2011 05:53 AM |
I made this script and it is the same as my Landing Gear and my door one exept the ending is different and they work. Can somebody help me fix this one?
if script.Parent:FindFirstChild("Drop") ~= nil then script.Parent.Drop.MouseButton1Down:connect(function (x,y) person = script.Parent.Parent.Parent.Parent.Character plane = person:FindFirstChild("Plane") if (plane ~= nil) then print ("plane found") gear=plane.Drop:GetChildren() if debby == false then debby = true for i=1, #gear do gear[i]:remove() end end end end) end
Where it sayd remove i expected it to delete the model(brick in a model) to be removed so the car would drop but nothing happened and the model was still there. Can somebody tell me whats wrong? |
|
|
| Report Abuse |
|
|
mark298
|
  |
| Joined: 24 Oct 2008 |
| Total Posts: 1264 |
|
| |
|
mark298
|
  |
| Joined: 24 Oct 2008 |
| Total Posts: 1264 |
|
|
| 15 Oct 2011 07:04 AM |
| Only perso who'll know how to do this is Weeve, i'll ask him. |
|
|
| Report Abuse |
|
|
DXPower
|
  |
| Joined: 21 Oct 2008 |
| Total Posts: 2866 |
|
|
| 15 Oct 2011 07:23 AM |
| try :breakJoints instead of :remove |
|
|
| Report Abuse |
|
|
|
| 15 Oct 2011 07:25 AM |
@DX
*facepalm*
:BreakJoints() is completely different from :Remove() |
|
|
| Report Abuse |
|
|
mark298
|
  |
| Joined: 24 Oct 2008 |
| Total Posts: 1264 |
|
|
| 15 Oct 2011 07:25 AM |
I knew Weeve would fix it.
if script.Parent:FindFirstChild("Drop") ~= nil then script.Parent.Drop.MouseButton1Down:connect(function (x,y) person = script.Parent.Parent.Parent.Parent.Character plane = person:FindFirstChild("Plane") if (plane ~= nil) then print ("plane found") gear=plane.Drop:GetChildren() for i=1, #gear do gear[i]:remove() end end end) end
He removed the debby part and changed the format. |
|
|
| Report Abuse |
|
|