Raycast from camera to middle of the screen

Hi, I'm trying to make a raycast from the server from the camera directly to the center of the screen to check where the player is aiming. Can't figure out how to do it. HELPP!!!!

Here is a example in the docs for what you are looking for: