This PART OF A SCRIPT was made to repeat wait until all of the children (zombies) where dead (destroyed/deleted out of the model). I get no errors from this script, but it just doesn't work.
repeat wait(5) until game:GetService("Workspace").Zombies:GetChildren() < 1
I also tried this script:
repeat wait() until game:GetService("Workspace").Zombies:GetChildren() == 0
This one didn't work either. Any help would be appreciated!
The reason it isn't working, is because you are comparing a table with 1.
Most likely what you want to be doing, is comparing the length
of the table with 1. This can be done with the #
operator before the table.
repeat wait(5) until #game:GetService("Workspace").Zombies:GetChildren() < 1