101PILOT
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 960 |
|
|
| 05 Dec 2013 10:28 AM |
For some reason this AI is dying when I move it and I am not sure how to fix this.
NewAIEnemy = game.ReplicatedStorage.AI
while true do o = game.Workspace.Doors:GetChildren() g = o[math.random(#o)]
g.Transparency = 1 g.CanCollide = false -------this is that pat that makes and moves the AI----------
local NewAI = NewAIEnemy:Clone() NAI = NewAI:GetChildren() NAI.Anchored = true NewAI.Parent = Workspace NewAI:MoveTo(g.Part.Position) NewAI.Humanoid.Health = 100 NewAI:MakeJoints() NAI.Anchored = false
------------------------------------------------- wait(10) g.Transparency = 0 g.CanCollide = true end
|
|
|
| Report Abuse |
|
|
CrniOrao
|
  |
| Joined: 12 Oct 2008 |
| Total Posts: 2274 |
|
|
| 05 Dec 2013 11:34 AM |
| Maybe you should parent it first, then make joints and then do the rest. |
|
|
| Report Abuse |
|
|
101PILOT
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 960 |
|
| |
|
Absurdism
|
  |
| Joined: 18 Jul 2013 |
| Total Posts: 2568 |
|
|
| 05 Dec 2013 04:57 PM |
| Parent it after MakeJoints. |
|
|
| Report Abuse |
|
|
101PILOT
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 960 |
|
|
| 05 Dec 2013 05:15 PM |
| For some reason it just won't |
|
|
| Report Abuse |
|
|
|
| 05 Dec 2013 05:17 PM |
| I had the same problem but when I tried it with my own character it worked fine. Its probably just a problem with the character that can be fixed but I'm not a builder so I don't know what it is. One thing it could be is that the surfaces aren't correct. |
|
|
| Report Abuse |
|
|
101PILOT
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 960 |
|
|
| 05 Dec 2013 05:20 PM |
| What do you mean by the surfaces not being correct? |
|
|
| Report Abuse |
|
|
wazap
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 23234 |
|
|
| 05 Dec 2013 05:29 PM |
| I think the problem is the anchoring. Dont anchor it? |
|
|
| Report Abuse |
|
|
101PILOT
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 960 |
|
| |
|