This script to build bones based on selected objects works perfect if you are going to use it only once in the scene. It gives error when using it again for the second time in the scene, apparently it is the way your array is built, as I do not have enough knowledge to solve it public here the question. Is it possible to…