Need help with script

hi, i need help with a script i have,
at first it says at 1,6 and 2,6 it expects ; so i put it in and this is what comes up:

below is the script

using UnityEngine;
using System.Collections;

var target : Transform; //the enemy’s target
var moveSpeed = 3; //move speed
var stopSpeed = 0;
var rotationSpeed = 3; //speed of turning

var myTransform : Transform; //current transform data of this enemy

function Awake()
{
myTransform = transform; //cache transform data for easy access/preformance
}

function Start()
{
target = GameObject.FindWithTag(“Player”).transform; //target the player

}

function Update () {

var Speed = moveSpeed;

if (renderer.isVisible)
{
myTransform.position += myTransform.forward * stopSpeed * Time.deltaTime;
}

if(!renderer.isVisible)
{
myTransform.position += myTransform.forward * moveSpeed * Time.deltaTime;
}
//rotate to look at the player
myTransform.rotation = Quaternion.Slerp(myTransform.rotation,
Quaternion.LookRotation(target.position - myTransform.position), rotationSpeed*Time.deltaTime);

//If you are looking at the object…
if (renderer.isVisible)
{
move = false;
}

//If you are NOT looking at the object…
if(!renderer.isVisible)
{
move = true;
}

//If you are not looking at the object…
if(move)
{
//Make him look at the target
transform.LookAt(target);
//Always follow the target
pos.position += pos.forward * speed * Time.deltaTime;
}

//If he is 3 units away from something, move right (Works if you are not looking at the object)
if (Physics.Raycast (transform.position, fwd, rayLength) move)
{
Debug.Log(“Something ahead, moving”);
transform.Translate(Vector3.right * 3 * Time.deltaTime);
}

}

I’m not really sure, but it seems that you can’t use “using” statements in UnityScript. They’re from C#. Haven’t read the rest of the script though, but try it without that.

it looks to me like you’ve copied stuff from multiple scripts…

you have not defined the variable pos but you try to use it here

pos.position += pos.forward * speed * Time.deltaTime;

also it says speed is not defined which is correct because your variable is Speed

var Speed = moveSpeed;

make the “S” a lowercase “s”

Also remove the using statements, and delcare the var fwd, rayLength and string. also next time please use code tags