So essentially this is what I want to replicate currently. Exploded view.

At the moment I am trying to attach a rayCast script to to a FP camera and have an object smoothly animate from a 'complete object to an 'explded view' with all the parts going to a target position once clicked.
I have managed to create a script that will move each part to its target position smoothly using Vector3.moveTowards, but it happens automatically. I need it to do it on click. This is where I am having problems. I have no idea how to. When I almost get it working on click, moveTowards doesn't work. Parts just go from point A to point B.

Unable to post code at the moment as I haven't the projects files on me at the moment, but looking for suggestions or maybe Ppseudocode examples. Hopefully trying to get a script setup that I can apply it to many objects and not just the one.