Hello, ive been trying to make a script for that npc's will wait to respawn until all have died. This is what i have so far...
while true do human = script.Parent clone = human:Clone() human.Humanoid.Died:Wait() if game.Workspace.Lives.Value <10 then wait() elseif game.Workspace.Lives.Value == 10 then clone.Parent = game.Workspace script.Parent = clone script.Parent.Humanoid.Deaths.Value = script.Parent.Humanoid.Deaths.Value * 1.25 print(script.Parent.Humanoid.Deaths.Value) script.Parent.Humanoid.MaxHealth = script.Parent.Humanoid.Deaths.Value * script.Parent.Humanoid.MaxHealth script.Parent.Humanoid.Health = script.Parent.Humanoid.MaxHealth game.Workspace.Lives.Value = game.Workspace.Lives.Value + 1 print(game.Workspace.Lives.Value) human:Destroy() end end