How can i make the tree branches weld to the tree parts when i chop the tree?

i made a chopable tree like lumber tycoon 2 , but i dont know how i can make the branches weld to the parts when i chop the tree, here’s a video:

You should probably set up constraints when generating the trees. I’d use RigidConstraint s rather than welds because they use Attachments instead of just Parts. That should help with figuring out which new parts get connected to which old parts when a tree is chopped.