Every time I send out a ray from my camera it is returning nil
local Cam = workspace.CurrentCamera.CFrame
local raycastRes = workspace:Raycast(Cam.Position, Cam.LookVector)
print(raycastRes)
Every time I send out a ray from my camera it is returning nil
local Cam = workspace.CurrentCamera.CFrame
local raycastRes = workspace:Raycast(Cam.Position, Cam.LookVector)
print(raycastRes)
The result will be nil if the ray doesn’t hit anything. Your direction is only 1 stud in length (LookVector is a unit vector). Try multiplying the LookVector by 1000