lsp425
|
  |
| Joined: 10 Dec 2011 |
| Total Posts: 603 |
|
|
| 24 Aug 2014 01:32 AM |
while wait(.1) do values = script.Parent.values opening = values.dooropening if opening.Value == true then wait(4) x = math.random(4,15) values.aliens.Value = x alien = game.StarterGui.Alien:Clone() xa = script.Parent.XA.Position.X xb = script.Parent.XB.Position.X za = script.Parent.ZA.Position.Z zb = script.Parent.ZB.Position.Z if xa > xb then x = math.random(xb,xa) end if xa < xb then x = math.random(xa,xb) end if za > zb then z = math.random(za,zb) end if za < zb then z = math.random(zb,za) end alien.Parent = game.Workspace alien.Torso.CFrame = CFrame.new(x,3,z) end end
no output |
|
|
| Report Abuse |
|
|
|
| 24 Aug 2014 01:34 AM |
| Are you making it give output...? |
|
|
| Report Abuse |
|
|
lsp425
|
  |
| Joined: 10 Dec 2011 |
| Total Posts: 603 |
|
|
| 24 Aug 2014 01:35 AM |
| well the ai does give out output but it doesnt explain why it is dieing |
|
|
| Report Abuse |
|
|
|
| 24 Aug 2014 01:36 AM |
| If there's a script in the AI, then post it and I'll see what I can do. |
|
|
| Report Abuse |
|
|
|
| 24 Aug 2014 01:39 AM |
| alien:MoveTo(Vector3.new(x,3,z)) |
|
|
| Report Abuse |
|
|
lsp425
|
  |
| Joined: 10 Dec 2011 |
| Total Posts: 603 |
|
|
| 24 Aug 2014 01:39 AM |
the ai is not the problem it is the moving of the ai I know it works when already in workspace
|
|
|
| Report Abuse |
|
|
lsp425
|
  |
| Joined: 10 Dec 2011 |
| Total Posts: 603 |
|
| |
|
|
| 24 Aug 2014 01:52 AM |
MakeJoints()?
is its head not attached or something?
ggnore |
|
|
| Report Abuse |
|
|