getcomponet API dosnt work... error CS0246: The type or namespace name `WaypointScript' could not be found. Are you missing a using directive or an assembly reference?

Trying to use the API tutorial to get component script and follow the tutorial on the API page however dosn’t acualy work
error CS0246: The type or namespace name `WaypointScript’ could not be found. Are you missing a using directive or an assembly reference?

you cannot assign custom publics or privates in unity like the tutorial dose it always comes up with errors.

using UnityEngine;
using System.Collections;

public class EXT_FighterAI : MonoBehaviour {


	public GameObject ThsFighter;

	public Transform selectedTarget;
	public Transform selectedWaypoint;
	public float waypointDistance;

	public float maxSpeed;
	public float currentSpeed;
	public float turnSpeed;
	public float shipHealh = 100;
	public float AIstance = 1;
	private  WaypointScript waypointscript;

//-----------------------------------------------------------------------------------------------------------
	// Use this for initialization
	void Start () {
	
	}
//-----------------------------------------------------------------------------------------------------------
	// Update is called once per frame
	void FixedUpdate () {
		
		// set patrolling AI:
		if (AIstance == 1) {
			patrolingAI ();
		}

		if (AIstance == 2) {
			AttackingAI ();
		}


	}	

	//-----------------------------------------------------------------------------------------------------------
	void patrolingAI ()	{
		waypointscript = GetComponent<WapointMover>();	
	}

	//-----------------------------------------------------------------------------------------------------------
	void AttackingAI (){

	}

	//-----------------------------------------------------------------------------------------------------------
	void RetreatAI(){

	}
	//-----------------------------------------------------------------------------------------------------------



}

waypointscript = GetComponent<WaypointScript >();

not

waypointscript = GetComponent<WapointMover>();