I Need help with a zombie scrpt ERROR UNEXPECTED SYMBOL

Im also a noob and i have this zombie script and it has the same error can you fix it and post the fixed version for me

using UnityEngine;
using System.Collections;

public class NewBehaviourScript : MonoBehaviour {

// Use this for initialization
void Start () {var target : Transform; //the enemy’s target
var moveSpeed = 3; //move speed
var rotationSpeed = 3; //speed of turning
var attackThreshold = 1.5; // distance within which to attack
var chaseThreshold = 10; // distance within which to start chasing
var giveUpThreshold = 20; // distance beyond which AI gives up
var attackRepeatTime = 1; // delay between attacks when within range

private var chasing = false;
private var attackTime = Time.time;

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 (){
// check distance to target every frame:
var distance = (target.position - myTransform.position).magnitude;

if (chasing) {
//rotate to look at the player
myTransform.rotation = Quaternion.Slerp(myTransform.rotation,
Quaternion.LookRotation(target.position - myTransform.position), rotationSpeed*Time.deltaTime);

//move towards the player
myRigidbody.AddForce( myTransform.forward * moveSpeed * Time.deltaTime );

// give up, if too far away from target:
if (distance > giveUpThreshold)
chasing = false;

// attack, if close enough, and if time is OK:
if (distance < attackThreshold Time.time > attackRepeatTime) {
target.SendMessage(“ApplyDamage”,10);
// Attack! (call whatever attack function you like here)
}
if (distance < attackThreshold) {
moveSpeed=0;
//stop when close enough
}

attackTime = Time.time+ attackRepeatTime;
}

else {
// not currently chasing.

// start chasing if target comes close enough
if (distance < chaseThreshold) {
chasing = true;
}
}
}

function OnTriggerEnter (other: Collider) {
if (other.gameObject.CompareTag(“Bullet”)){
chaseThreshold=100000000;
}

}

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

}
}

Looks like you’ve mixed C# and UnityScript together in one script.

Don’t demand a fixed version, work out the fix for yourself. Also you have not even told us what the error is. But by looking at your script, you have C# and UnityScript mixed as post 2 says. Now i will paste a fixed version, but in future, don’t demand a fixed version.

#region Imports

using UnityEngine;

#endregion

public class ZombieScript : MonoBehaviour
{
// Use this for initialization
    public float attackRepeatTime = 1f; // delay between attacks when within range
    public float attackThreshold = 1.5f; // distance within which to attack
    public float attackTime = Time.time;
    public float chaseThreshold = 10f; // distance within which to start chasing
    public float giveUpThreshold = 20f; // distance beyond which AI gives up
    public float moveSpeed = 3f; //move speed
    public float rotationSpeed = 3f; //speed of turning
    public Transform target; //the enemy's target
    private bool m_Chasing;
    private Transform m_MyTransform; //current transform data of this enemy
    private Rigidbody m_MyRigidbody;

    void Awake()
    {
        m_MyTransform = transform; //cache transform data for easy access/preformance 
        m_MyRigidbody = rigidbody;
    }

    void Start() { 
        target = GameObject.FindWithTag("Player").transform; //target the player
    }

    void Update()
    {
// check distance to target every frame:
        float distance = (target.position - m_MyTransform.position).magnitude;

        if ( m_Chasing )
        {
//rotate to look at the player
            m_MyTransform.rotation = Quaternion.Slerp(m_MyTransform.rotation, Quaternion.LookRotation(target.position - m_MyTransform.position), rotationSpeed*Time.deltaTime);

//move towards the player
            m_MyRigidbody.AddForce(m_MyTransform.forward*moveSpeed*Time.deltaTime);

// give up, if too far away from target:
            if ( distance > giveUpThreshold )
            {
                m_Chasing = false;
            }

// attack, if close enough, and if time is OK:
            if ( distance < attackThreshold  Time.time > attackRepeatTime )
            {
                target.SendMessage("ApplyDamage", 10);
// Attack! (call whatever attack function you like here)
            }
            if ( distance < attackThreshold )
            {
                moveSpeed = 0;
//stop when close enough
            }

            attackTime = Time.time + attackRepeatTime;
        } else
        {
// not currently chasing.

// start chasing if target comes close enough
            if ( distance < chaseThreshold )
            {
                m_Chasing = true;
            }
        }
    }

    void OnTriggerEnter(Collider other)
    {
        if ( other.gameObject.CompareTag("Bullet") )
        {
            chaseThreshold = 100000000;
        }
    }
}

Sorry for demanding a script but I’m a noob and ound some scripts and this is one of them it said Unexpected symbol sooooo…
thanks I will test the script right now

it says that there is an Unexpected symbol and it also says that you cant use the keyword void so can you TELL me how to fix it

Because the script Elite posted is in C# you need to put the code in a C# script. Create a new C Sharp script and put the code in it. Using Scripts in Unity

Im really a noob so were do i paste this script he gave me, in the text it gives you when you start the script

I saw your online and quick question were do i post the script you gave me a while back i never got it to work.

I need help with what the person after you posted were do i add the script into a C# script or do i just delete the text

In your asset explorer, right click, create then C# Script, name it ZombieScript and paste that code in.