This script was for 10 cubes to spawn in. It was similar to the script which spawned in spheres. I wrote the script so it spawned in cubes in a line with 1 axis then try to do 2 axes at the same time. After that work, I decided to spawn in more than 10 in an area. 
Spawning cubes in an area.
Kill Script
SpawnCubes Script
I then made the cubes spawn at random but also told it to try and make a circle around the sphere in the center. At first, it only did semi-circle, all I had to do was to change the numbers up a bit and it would start building a circle around the sphere. This was fun to watch as the script built a circle on its only. 
Finished loop using cubes.
Back to Top