Rigidbody2d.moveposition not working on gameobjects with children.

I have a player game objects with children. I am attempting to move this player in the x axis by using the recommended function Rigidbody2D.MovePosition. I have also tried Rigidbody2D.AddForce and neither work in player. The player has children to animate them separately.

I just solved this. Vector2 and Vector3 variables for some reason don’t set in void Start(). Use void Awake(), Void Update(), or Void FixedUpdate().