How do I cast rays to the position of a camera?

My friend asked this question and he is going to join the devforum in a few days, sorry.

He wanted to know how to cast rays to a specific camera position

raycast to the workspace.CurrentCamera position

Like @iam13robloxexactly said, cast the ray to the position of the camera.

local camerapos = game.Workspace.CurrentCamera.Position
local goalpos = Vector3.new(0, 50, 0) -- Edit This

local ray = Ray.new(camerapos, goalpos)