How do I Find the closest point of a part to where a player's mouse is

so I want to make a tool that throws a ball in a certain direction of a target the player clicked on using a bézier curve

I know how to get a part position with the mouse but that just often leads to getting the same curvature as the position is the same and always is the center of the part, so I want to know how to get the exact point in space of a mouse target that the player clicked on, so I can move my ball into that exact position .

Does anyone have any idea on how to do this?

mouse.Hit.Position gets the mouses position. Correct me if I understood wrong