Noob made mistake and needs help

Good day, this script is attached to a baby that follows the player. Everything worked perfectly untill… I changed the pivot point of the baby in blender and re-exported it. I also change some rotation values.When I tested the game the baby wont follow the player anymore, but if I add this script to a new cube object it follows the player??
What did I do wrong?

using System.Collections.Specialized;
using System.Security.Cryptography;
using System.Threading;
using UnityEngine;

public class WalkingScript : MonoBehaviour

{
    private Transform target;
    public float speed;


   


    void Start()
    {
        target = GameObject.FindGameObjectWithTag("Player").GetComponent<Transform>();
    }



        // Update is called once per frame
        void Update()
        {

            transform.position = Vector3.MoveTowards(transform.position, target.transform.position, speed * Time.deltaTime);
            Vector3 direction = target.position - transform.position;
            Quaternion rotation = Quaternion.LookRotation(direction);
            transform.rotation = rotation;
        }

  
     
    }

The issue isn’t going to be with the script, but with the model. Since you changed the pivot, that will affect a lot of logic. You could fix the pivot in Blender and export again, or, you can use the tried and true Unity technique known as, “sticking it in a child object under the parent and using the parent to control everything”. That way you can move the Blender model around freely and the logic of the script will work the way it wants to.

Thank you for the reply. That is exactly what I did, this script is on a parent and the child is the object that a re-exported?

Okay, I figured out something, by method of elimination. If I disable the gameobject Animator, the script works? How does that works??

Okay I fixed it by redoing the animation.