Script to avoid characters collide with each other?

Hello, I have several characters in my scene and the problem is that when they move they are colliding with each other.

I tried attaching this script to the characters, but still they collide:

    function Start() {
      ignoreCollision("Player");
    }
     
    function ignoreCollision(tag: String) {
      var objects = GameObject.FindGameObjectsWithTag(tag);
      for (o in objects) {
           if (o.GetComponent("Collider")  o != gameObject) Physics.IgnoreCollision(collider, o.collider);
      }
    }

So what script should I write?

Thanks.

Set your objects to different layers and make sure collision between those layers is turned off.

Here’s a reference on that: