I have a 2D-top-down game and one of the mechanics involves swapping body parts (legs, arms, head, back, etc.) and I was wondering the best/most efficient way to implement this. I use skeletal animations for my game so far, so a method involving that is preferred but I'm open to making adjustments. The different body parts would make up different tools like weapons and drills, so it's not just a matter of appearance but functionality as well. As of now, I don't know of a way to swap scenes through code but I'm certain that there's a way. I plan for the parts to be swappable through some type of inventory system, like equipping armor or something like that. I was just curious as to how I would not only program a feature like this, but also set it up in the node system so that it's fast and efficient, as there are going to be many body parts. I'm relatively new to Godot and programming as a whole but I love learning, I just haven't managed to find a tutorial that fits this criteria and I don't know what exactly to search for in the docs since there are a multitude of methods to achieve this mechanic. Thank you for reading and possibly responding! I appreciate your time! I'll attach some images to clarify what I'm trying to do and what I've done so far. I'm also new to instancing so advice on that would be helpful too. I apologize if I'm asking for too much, I just believe this knowledge will help me beyond this project.
The player scene:

The scene for a particular part:

Code to instance and place that part:

Outcome as of now:
(note: I can't record it but I do have a working basic attack animation that acts as intended)
Again, thank you!!