How can I make parts destroyable?

Hi! I am trying to make a tree where you can cut off the wood with a chainsaw from it. The tree has multiple pieces in it that can be cutted off. Is there a way to make it fall down when you have a chainsaw? Also you dont have to click, the chainsaw must be on (by pressing the E button) and it must touch the tree.
Heres an example about what I want to achieve:

is there a way to script something like this? Also, do I need to weld every part on each other?

Make the tree unanchored, weld all the parts, and whenever the chainsaw touches a part, break a weld.

1 Like

I have to use for i,v inpairs(script.Parent:Getchildren()) right? And then check if one of them is being touched

for i, v in pairs(script.Parent:GetDescendants()) do
    if not v:IsA("Script") then

    end
end
1 Like