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: Help, please.

Previous Thread :: Next Thread 
mattandjeffhardy619 is not online. mattandjeffhardy619
Joined: 21 Jul 2008
Total Posts: 510
04 Nov 2012 01:17 PM
I'm trying to make it remove the zombie after death of course but it wont remove it, all this does is kill my zombie...



while true do
if game.Workspace.Zombie1.Zombie.Health = 0
then game.Workspace.Zombie1:Remove()
end
if game.Workspace.Zombie2.Zombie.Health = 0
then game.Workspace.Zombie2:Remove()
end
end
Report Abuse
Woodstauk4 is not online. Woodstauk4
Joined: 27 Dec 2010
Total Posts: 3061
04 Nov 2012 01:20 PM
Workspace.Zombie1.Zombie.Died:wait()
Workspace.Zombie2:Destroy()
coroutine.resume(coroutine.create(function()
Workspace.Zombie2.Zombie.Died:wait()
Workspace.Zombie2:Destroy()
end))
Report Abuse
mattandjeffhardy619 is not online. mattandjeffhardy619
Joined: 21 Jul 2008
Total Posts: 510
04 Nov 2012 01:23 PM
All it's doing is killing my zombie still I want so if some one shoots the zombie and it's dead then it gets destroyed... Thanks for the help though.
Report Abuse
Woodstauk4 is not online. Woodstauk4
Joined: 27 Dec 2010
Total Posts: 3061
04 Nov 2012 01:25 PM
This won't kill your zombies, only remove them when they have died.

Chances are the joints of the zombies/the humanoid are not fully made
Report Abuse
TheAwesomenessDude is not online. TheAwesomenessDude
Joined: 17 Jul 2011
Total Posts: 11602
04 Nov 2012 01:44 PM
while true do
wait()
if game.Workspace.Zombie1.Zombie.Health == 0
then game.Workspace.Zombie1:Remove()
end
wait()
if game.Workspace.Zombie2.Zombie.Health == 0
then game.Workspace.Zombie2:Remove()
end
end

Does that work?
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