Advertisement
Sungmingamerpro13

Minions(OBJECTIVE STORY GAME)

Dec 21st, 2022
1,191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 0.30 KB | None | 0 0
  1. local AliensFolder = game.ReplicatedStorage.AliensFolder:Clone()
  2. AliensFolder.Parent = workspace
  3.  
  4. local Aliens = 0
  5. local MaxAliens = 4
  6.  
  7. for i,v in pairs(AliensFolder:GetChildren()) do
  8.     if v.Zombie.Health > 0 then
  9.         Aliens = Aliens + 1
  10.         v:Destroy()
  11.     end
  12. end
  13.  
  14. repeat wait() until Aliens >= MaxAliens
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement