Your error lies in this line:
zombies=game.Workspace:FindFirstChild("Yellow-Team Zombie","Red-Team Zombie")
The method :FindFirstChild(name [string], descendant [bool]) asks for two parameters, where one is optional.
The first parameter is a string - the name of the object you're trying to find.
The second parameter is a bool - whether or not to search through all children of the parent-object, to find the object you wish to find. This is in case your object isn't a direct descendant of the parent.
You should do
zombies = {}
zombies[1] = game.Workspace:FindFirstChild("Name1", true)
zombies[2] = game.Workspace:FindFirstChild("Name2", true)
if #zombies >= 2 theb
--proceed
end |