Sorry I haven't checked this in a while. Anyway, as it is, this is pretty inefficient. The reason it is written like that is I was having trouble with the DestroyObject function. Of course, 6 months later and now that I'm a better scripter, this could be a lot better. But I think it gives someone new to scripting a pretty good idea of how to do it.
10 - A Masterpiece, Genuinely Groundbreaking 9 - Outstanding, a Must Have 8 - Excellent, Recommended to Anyone 7 - Very Good, Deserves a Look 6 - Good, Qualified Recommendation 5 - Fair, Solid yet Unremarkable 4 - Some Merit, Requires Improvements 3 - Poor Execution, Potential Unrealized 2 - Very Little Appeal 1 - Not Recommended to Anyone