How would I do this?

Ok so, I have a part cutting system and I have trees that are made of multiple parts. How can I make it like this pic with “cutting calculation parts” get’s welded to appropriate parts?

weld all part with weldconstraint, when player cut the tree then break the weld of the bottom of the tree and force the tree at random direction using vectorforce
the bottom of the tree should anchor i guess

Ironically, you could store the branches in a tree, with the trunk as the root. When a cut is made on a branch, split that branch, weld all descendant nodes, and unanchor all descendant nodes.

This will allow you to have a lot less constraints in your game.

If I had to guess, this is probably close to how lumber tycoon does it, hence the ability to cut any branch at any position.

Just to clarify, you mean parenting all branches to the branch they are attached to (and in the case of branches attached to the trunk, to the trunk). That way by getting all of the descendants of a branch you are effectively getting everything that should fall if a branch is cut.

Basically I just want it to be like lumber tycoon 2. This is what I am trying to achieve.

When you spawn a tree, loop through each branch and:
Add a table of discrete progresses (empty initially)
add a function connected to a click event on that part that:
calculates how far along the branch the player clicked.
rounds it to the nearest 0.1 or something (you can do it in studs so its consistent across all branch sizes, and check if this number X is a key in your table. If it is, add some number Y based on the tree and axe strength. If not, set the value to Y. In other words:

if Table[X] then Table[X] += Y else Table[X] = Y end

Then check if this new progress value exceeds 1 (or your tree health, if you don’t want to adjust for tree strength in the calculation of Y, then run a FallTree() Function if it does.

If it doesn’t generate a black part whose width is slightly wider than the trunk, and thickness is in line with the progress Y. Place it X above the base of the branch.

FallTree should:

Take the part that was split (A) and shrink it to fit only the upper bit that falls off. Generate a new part to fill the gap created, and ensure that both of these follow the behaviour described above ^^ but inheriting incomplete progress points (adjustments to keys will be needed here).
Create a new empty model
Set this model as A’s parent
Loop through descendants of A and weld them to A (by making a weldconstraint and setting part0, part1 = descendant, A. Unanchor the descendant.
Unanchor A.

Make sure that when you spawn a tree the hierarchy of branches is as MC and myself described, and the above will work. I have tried to be very detailed. Sorry if that was a mouthful lmao.

Hey, thanks for the suggestion, I might try it. Don’t tell anyone but I don’t really understand it (maybe it’s because I only slep 6 hours and 20 minutes yesterday), so I am probably gonna ask AI or something. But thanks for the suggestion, it seems like an advanced one.