xorn101
|
  |
| Joined: 24 Oct 2009 |
| Total Posts: 15 |
|
|
| 23 Jul 2011 08:35 AM |
| Alright, I have some zombies in my place, but for some reason I can't get them to respawn where I want them to! Can someone please help me? |
|
|
| Report Abuse |
|
|
|
| 23 Jul 2011 08:37 AM |
| Where do they respawn? Show us the script? |
|
|
| Report Abuse |
|
|
|
| 23 Jul 2011 08:39 AM |
Move the zombie to where you want it to respawn, leave the game, play it, and it should work.
Make sure the game is paused when you do this.
-My hand is a dolphin |
|
|
| Report Abuse |
|
|
1Ra
|
  |
| Joined: 02 May 2010 |
| Total Posts: 2400 |
|
|
| 23 Jul 2011 08:49 AM |
z = script.Parent m = z:clone() z.Humanoid.Died:connect(function () z:remove() m.Parent=game.Workspace m:MoveTo(Vector3.new(ZOMBiELOCATIONHERE)) m:MakeJoints() |
|
|
| Report Abuse |
|
|
|
| 23 Jul 2011 08:52 AM |
@OP
First of all, DELETE your current zombie's humanoid. And add this to the Animation/Robot script of your AI:
So whenever your AI spawns, you will have a brief new Humanoid everytime.
This helps me A LOT during making zombies move, appear, spawn, etc, and this makes them dont break.
~~~
hu = Instance.new("Humanoid", script.Parent) hu.Name = "Zombie" hu.MaxHealth = 100 ---Your Ais Health hu.Health = hu.MaxHealth
script.Parent:MakeJoints() |
|
|
| Report Abuse |
|
|
xorn101
|
  |
| Joined: 24 Oct 2009 |
| Total Posts: 15 |
|
|
| 27 Jul 2011 12:50 PM |
alright guys, thanks.
now, I'm having a scripting issue. What do I need to add to make this work?
game.Workspace.terrain.Starter box.part.CanCollide = false msg = Instance.new("Message") msg.Parent = game.Workspace msg.Text = "You awaken in a strange world... Ban land..." wait(1) msg:remove() wait(5) game.Workspace.terrain.Starter box.part.CanCollide = true
|
|
|
| Report Abuse |
|
|
|
| 28 Jul 2011 02:28 PM |
game.Workspace.terrain["Starter box"].part.CanCollide = false msg = Instance.new("Message") msg.Parent = game.Workspace msg.Text = "You awaken in a strange world... Ban land..." wait(1) msg:remove() wait(5) game.Workspace.terrain["Starter box"].part.CanCollide = true
Remove the dot and ad [" "] for words with spaces. |
|
|
| Report Abuse |
|
|
xorn101
|
  |
| Joined: 24 Oct 2009 |
| Total Posts: 15 |
|
| |
|
xorn101
|
  |
| Joined: 24 Oct 2009 |
| Total Posts: 15 |
|
|
| 29 Jul 2011 09:26 AM |
it doesn't seem to work. Here's what I've got so far.
game.Workspace.terrain["Starter box"].Part.CanCollide = false msg = Instance.new("Message") msg.Parent = game.Workspace msg.Text = "You awaken in a strange world... Ban land..." wait(1) msg:remove() wait(5) game.Workspace.terrain["Starter box"].Part.CanCollide = true end
|
|
|
| Report Abuse |
|
|
|
| 29 Jul 2011 07:01 PM |
| Why does it have an end? Delete that. o: |
|
|
| Report Abuse |
|
|
xorn101
|
  |
| Joined: 24 Oct 2009 |
| Total Posts: 15 |
|
|
| 30 Jul 2011 12:56 PM |
| it didn't work either way. I tried both. |
|
|
| Report Abuse |
|
|