Im having a problem with my C# code

79354-screen-shot-2016-10-02-at-120222-pm.pngCan’t add script component ‘charactercontroller’ because the script class cannot be found. Make sure that there are no compile errors and that the file name and class name match. I only get this message when i try to drag and drop my code in to the objects componant list thingy.

Please help me Im probberly just misunder standing but i really want to know whats wrong.
using UnityEngine;
using System.Collections;

public class carachercontoler : MonoBehaviour {

public float speed = 10.0F;
// Use this for initialization
void Start () {
	Cursor.lockState = CursorLockMode.Locked;

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

	float translation = Input.GetAxis ("Vertical") * speed;
	float straffe = Input.GetAxis ("Horizontal") * speed;
	transform.Translate (straffe, 0, translation);

	if (Input.GetKeyDown ("escape"))
		Cursor.lockState = CursorLockMode.None;


Are you sure you have exactly the same name in the script and name with script is saved?

public class carachercontoler : MonoBehaviour {

//carachercontroller or charactercontroller?

public class charactercontroller : MonoBehaviour {

sorry my bad english :stuck_out_tongue: