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 Regen

Previous Thread :: Next Thread 
mattandjeffhardy619 is not online. mattandjeffhardy619
Joined: 21 Jul 2008
Total Posts: 510
04 Nov 2012 06:06 PM
So I got the zombie to regen, but it regens dead...

while true do
if game.Lighting.TimeOfDay == "18:00:00"
then game.Lighting:FindFirstChild("Zombie"):Clone().Parent = game.Workspace
end
wait(0.1)
end
Report Abuse
mattandjeffhardy619 is not online. mattandjeffhardy619
Joined: 21 Jul 2008
Total Posts: 510
04 Nov 2012 06:14 PM
Ok, got it working...

while true do
if game.Lighting.TimeOfDay == "18:00:00"
then game.Lighting:FindFirstChild("Zombie"):Clone().Parent = game.Workspace
game.Workspace.Zombie:MakeJoints()
end
wait(0.1)
end
Report Abuse
TheAwesomenessDude is not online. TheAwesomenessDude
Joined: 17 Jul 2011
Total Posts: 11602
04 Nov 2012 06:24 PM
Hey, I helped you earlier, didn't I?

Anyway, it is probably that the zombie in Lighting has no life, therefore when it is cloned it is cloned dead. Most likely it is some problem with your zombie, if not that.
Report Abuse
mattandjeffhardy619 is not online. mattandjeffhardy619
Joined: 21 Jul 2008
Total Posts: 510
04 Nov 2012 06:26 PM
It's working now.. well the clone is but the clean up wont...

while true do
if game.Lighting.TimeOfDay == "18:00:00"
then game.Lighting:FindFirstChild("Zombie"):Clone().Parent = game.Workspace
game.Workspace.Zombie:MakeJoints()
end
wait(1)
end

while true do
if game.Lighting.TimeOfDay == "07:00:00"
then game.Workspace.Zombie:Destroy()
end
wait(1)
end
Report Abuse
TheAwesomenessDude is not online. TheAwesomenessDude
Joined: 17 Jul 2011
Total Posts: 11602
04 Nov 2012 06:27 PM
Maybe there is more zombies than just one? Or else try using :Remove because in some cases Destroy doesn't work.
Report Abuse
mattandjeffhardy619 is not online. mattandjeffhardy619
Joined: 21 Jul 2008
Total Posts: 510
04 Nov 2012 06:30 PM
Oh, ok I'll try it...
Report Abuse
mattandjeffhardy619 is not online. mattandjeffhardy619
Joined: 21 Jul 2008
Total Posts: 510
04 Nov 2012 06:32 PM
Didn't work :(
Report Abuse
mattandjeffhardy619 is not online. mattandjeffhardy619
Joined: 21 Jul 2008
Total Posts: 510
04 Nov 2012 06:50 PM
Bump
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