Need help with scripting a tree cutting system with animations

  1. i’d like to create a realistic tree cutting system. It need to work when the player equiping a tool, and press “e” on keyboard

  2. i have tried tutorials and tips, but anything work. please help. i’ve got animations and tool, but the script is always broken.

If you would like it to be that there is an animation played instead of a “click to chop” sort of mechanic, you would likely want to use a mixture of player animations and tweening.

When the player presses E (utilizing UserInputService), you would teleport their character HumanoidRootPart to a designated CFrame (and anchor them) next to the tree and have an animation that plays to simulate the chopping of the tree.

After however long it takes to chop down a tree, you would unanchor the player and have the tree fall. If you would like to be in control of the movement of the tree as it falls down, you would likely want to use a tween to tween the tree to the ground. If you are not as picky about how the tree falls, you could just have the tree that the player is chopping spawn out of the ground and unanchor it so it is affected by gravity, then let it fall however it falls.