portal problem

hi, im trying to make a portal for a pacman type game. The rule is, when you enter the left side portal you will spawn to the right side portal and vice versa. the transport to the other side works fine. The problem is that the character is stocked to the spawn area. look at my code:

This for the Spawnpoint script :

static var post;
static var travel = false;
var Portal1 = false;
var Portal2 = false;

static var p1;
static var p2;

function Update()
{
    Portal1 = toPortal1.Portal1;
    Portal2 = toPortal2.Portal2;
    if(Portal1==true)
    {
        p1 = true;
        post = transform.position = GameObject.FindWithTag("portal1").transform.position;
        travel = true;
    }
    if(Portal2==true)
    {
        post = transform.position = GameObject.FindWithTag("portal2").transform.position;
        travel = true;
    }
}

function OnLevelWasLoaded(thisLevel: int)
{
    post = transform.position = GameObject.FindWithTag("spawn").transform.position;
    travel = true;
}

and this is to one of my portal script :

static var Portal1;

function Start ()
{
    transform.collider.isTrigger = true;
    Portal1=false;
}

function OnTriggerEnter (col : Collider) 
{
    if(col.gameObject.tag == "TIGER" )
    {
        transform.collider.isTrigger = true;
        renderer.enabled = false;
        Portal1 = true;
    }
}

i hope that someone can identify the problem…thanks

Your script is over complicated for just a simple transporting script. All you need to do is :

var portal2 : GameObject;

function OnTriggerEnter (col: Collider){
    if(col.gameObject.tag == "TIGER" && portal2.gameObject.active == true) {
        col.gameObject.transform.position = portal2.transform.position;
        renderer.enabled = false;
    }
}

This should do a transportation on its own without the other bits. Sorry if this doesn’t answer your question, but i cant see a problem with your script other than you might have intersecting colliders which are stopping your character from moving.