so in my game I do player = GameObject.FindGameObjectWithTag("player").transform; (the player variable being a transform) and then I run it in
player = GameObject.FindGameObjectWithTag("player").transform;