How do you launch the player towards the direction your mouse is on XZ Planes?

Hello, I’m trying to figure out how to launch my player to where I hold my left mouse button is at. But not towards the background, or towards the camera itself, only from any directions in the 2D Axis the Player is in
I’ve searched everywhere, mainly something similar to a grappling hook and I’ve gotten close to it, but it always does this