Hi!
What’s the easiest way of making choppable trees with simple animation?
EX:
Player hits a tree & does a bouncy effect.
After three hits, it disappears and leaves the stem.
Three wood planks go to player’s leaderstats.
Hi!
What’s the easiest way of making choppable trees with simple animation?
EX:
Player hits a tree & does a bouncy effect.
After three hits, it disappears and leaves the stem.
Three wood planks go to player’s leaderstats.
In my humble opinion you could for instance,
1 Use a ProximityPrompt
2 Play an animation for the player and the tree
3 Count the hits, when it reaches 3, you could gradually change the transparency from 0 to 1
4 Add 3 to the player’s leaderstats.
I would not use hitboxes for detecting if a player hits a tree. I would instead rely on client input for their mouse click and verify on the server with a pose check. You could do the proximity prompt approach where it basically locks them into cutting it but it could be annoying when they try and do other stuff in your game near trees. You basically assign a fake humanoid health class for it and do damage to it every hit that is verified on the server and when its health is 0 you drop it by either making it welded and unwelding it from the ground or applying a small impulse up with it unanchored and making them all cancollide true. After that the last person to have hit it gets awarded whatever you wanted.
Truth is, I’m not so good at coding. What you said was a lot to take in, but I appreciate your time for writing it all down. Is there any tutorial I could limit myself to that backs your explanation. 
How to make a choppable tree in Roblox | 2020 - YouTube, Just a little googling and this seems to be a pretty good tutorial
No not really. You’ve reached the point in coding where there is no tutorial for what you want to make
I know this is three years later, but this is not the best tutorial because this listens for when the tool touches the tree. It sounds good, but in theory you could just hold your axe out and as long as its touching the tree health will be taken. You probably want to actually click and swing your axe in order to chop a tree down, not just hold the tool out.
Thanks for the input, this was completely unnecessary