Instanitate an object

Im trying to have a system where I destroy an object as another Instantiates on it. I need to do this many times and I know I could just copy and paste my code 100 times but Surely there is a more efficient way. I would really like someone to help :smiley:

Watch this video, and make a loop.