I noticed during the If statement in ClickDetect for Physics.Raycast that the properties kept changing.
like for example in (2) Beginner Scripting Examples: Basic Raycasting that the properties were
Raycast(Vector3 orgin, Vector3 direction, float MaxDistance, int LayerMask)
But in this video it was Raycast(Ray ray, float MaxDistance, int LayerMask)
Then it changed to Raycast(Ray ray, out RaycastHit hitInfo, float MaxDistance, int LayerMask)