|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
| |
|
| |
|
| |
|