oh you can just attack through walls intentionally, the attack isnt based where your cursor is, its based on the pickaxe itself. To prevent attacking through walls ill have to make a check using a ray from the player to check if there is a wall between player and enemy