Raycast from transform.position to Player.transform.position is not raycasting to player

I did

Debug.DrawRay (transform.position, PlayerGet.transform.position);

Debug.DrawRay needs a Vector3 as the origin and a Vector3 as the direction, NOT a second “target” position. For that, you would have to use Debug.Drawline.

If you want to use Debug.DrawRay, do it like this:

Debug.DrawRay (transform.position, PlayerGet.transform.position - transform.position);