generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Zombie respawn

Previous Thread :: Next Thread 
xorn101 is not online. 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
ElectricAxel is not online. ElectricAxel
Joined: 15 May 2009
Total Posts: 16239
23 Jul 2011 08:37 AM
Where do they respawn? Show us the script?
Report Abuse
Megamatrixdude is not online. Megamatrixdude
Joined: 06 Dec 2009
Total Posts: 10939
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 is not online. 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
RagerTMFire is not online. RagerTMFire
Joined: 17 Jul 2011
Total Posts: 9
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 is not online. 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
ElectricAxel is not online. ElectricAxel
Joined: 15 May 2009
Total Posts: 16239
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 is not online. xorn101
Joined: 24 Oct 2009
Total Posts: 15
29 Jul 2011 09:17 AM
Thanks for the help
Report Abuse
xorn101 is not online. 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
ElectricAxel is not online. ElectricAxel
Joined: 15 May 2009
Total Posts: 16239
29 Jul 2011 07:01 PM
Why does it have an end? Delete that. o:
Report Abuse
xorn101 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image