I have scripted a cloud spawner that clones clouds from a group of 4 cloud models and positions them in random spots on one side of the map and then activates a script inside the cloned cloud that tweens it to the other side of the map and then deletes itself.
Is there a more efficient way to do this? Specifically I am wondering if there is a way to tween multiple models that delete themselves upon completion of the tween without having a separate script in each model that tweens and deletes them.
My first thought was to tween them after cloning and positioning them in the same repeating function but I do not know how to delete them from there. The function that clones, positions, and tweens the clouds has to repeat every 5 seconds and having another function inside it that waits for the tween to complete and then destroys the Cloud gets in the way of this.