Answered by
8 years ago Edited 8 years ago
Try using the died event
The died event is an event for Humanoids, and it fires when they die.
Game Plan
What I'm suggesting, is looping through all the zombies, setting up an event, and whenever one dies, decrease a number until it reaches 0. When is does reach 0, fire a function and then add your code. Easy Peas-z.
02 | local boss = game.Workspace [ "Boss Zombie" ] |
04 | local function SummonBoss() |
05 | boss.Torso.Anchored = false |
06 | boss.Torso.Transparency = 0 |
07 | boss.Head.Transparency = 0 |
08 | boss.zarm.Transparency = 0 |
09 | boss.rarm.Transparency = 0 |
10 | boss [ "Left Leg" ] .Transparency = 0 |
11 | boss [ "Right Leg" ] .Transparency = 0 |
12 | boss.Torso.CanCollide = true |
13 | boss.Head.CanCollide = true |
14 | boss.zarm.CanCollide = true |
15 | boss.rarm.CanCollide = true |
16 | boss [ "Left Leg" ] .CanCollide = true |
17 | boss [ "Right Leg" ] .CanCollide = true |
21 | local zombie = workspace:FindFirstChild( "Zombie" ..i) |
22 | zombie.Humanoid.Died:connect( function () |
This is just a rough draft, basically. It might work, but it'll probably need some tweaking.
Good Luck
If you need anything explained, just ask. If I helped, or answered your question, then please don't forget to accept my answer.