Title fix.
Also, you need something more complex than that. You _could_ store them in a "box" out of view and use MoveTo on their humanoid. Here's what I'd do for what you have:
function check()
local ROZ = Workspace.ROZ:getChildren()
for i = 1, #ROZ do
if ROZ[i].Humanoid.Health > 0 then
wait(0.01)
return false
end
end
return true
end
while true do
if check() then
wait(1)
game.Lighting.T.ROZ1.Parent = game.Workspace
Workspace.ROZ.Parent = nil
end
wait(0.01)
end
You still need positions for the zombies to move to, but this _may_ work. |