I made the aiming by shooting a raycast from the mouse position and pointing the player towards where it hit. You can do this using the project_ray_originl and project_ray_normal functions on the camera in godot