--The things lua can do do. function OnWaveSpawnBot(bot, wave, tags) local head = {"Lo-Fi Longwave", "Full Metal Helmet", "Hot Spaniel", "Cranium Cover", "Hazard Handler","Cranium Cooler"} local misc = {"Flak Jack", "The Man in Slacks", "Cargo Constructor"} for _, tag in pairs(tags) do if tag == "generic" then bot:GiveItem(head[math.random(#head)]) bot:GiveItem(misc[math.random(#misc)]) else print("not a zombie") end end end