Why is the object going opposite of the intended direction?

I have script that is supposed to make an object look at and follow another making very simple AI; however, whenever I try to use the script it always sends the object in the opposite direction of forward ie it moves away instead of moving to the object.
using UnityEngine;
using System.Collections;

public class AI : MonoBehaviour
{

    public GameObject Player;






    void Start()
    {

    }

    void Update()
    {
        Debug.Log("here");
        transform.LookAt(new Vector3(Player.transform.position.x, transform.position.y, Player.transform.position.z));
        transform.Translate(transform.forward);
     
    }
}

Okay, I have a script here that I use:

var player : GameObject;
var speed : float;

function Update () {

   transform.LookAt (player.transform.position);
   transform.Translate (Vector3.forward*speed);

}

I don’t really know much C#, sorry. You probably could just copy + paste those two lines in the Update function. But yeah, this is the follow script that I use.

Thanks!!! You have to use Vector3.forward instead of transform.forward that was my problem!