I’m assuming ‘player’ is the part. If you’re trying to raycast from the part to the camera then why are you doing ‘player.Position - camera.CFrame.Position’ for the end location. The direction of the raycast is always from pos1 → pos2. I’m also pretty sure the parameters for the Raycasting function should be ordered pos1, pos2, raycastParams.