Unity 5 script compilation errors

I have recently started working with Unity as a hobby, and I am making my first game today. I used the tutorial Live Training 16 Dec 2013 - 2D Character Controllers - YouTube Live Training, and did exactly what it said to do.
But once I got to 46:42, I couldn’t open my script or play the game because there were “Compilation Errors” I reviewed code and there was nothing wrong. I couldn’t even play the sample assets. What’s the problem? Here’s my code.

using UnityEngine;
using System.Collections;

public class RobotControllerScript : MonoBehaviour {

	public float maxSpeed = 10f;
	bool facingRight = true;

	Animator anim;

	// Use this for initialization
	void Start () {
		anim = GetComponent<Animator> ();
	}
	
	// Update is called once per frame
	void FixedUpdate () {
		float move = Input.GetAxis ("Horizontal");
		anim.SetFloat ("Speed", Mathf.Abs (move));
		GetComponent<Rigidbody2D>().velocity = new Vector2 (move * maxSpeed, Rigidbody2D.velocity.y);
		if (move > 0 && !facingRight)
			Flip ();
		else if (move < 0 && facingRight)
			Flip ();
	}
	void Flip()
	{ 
		facingRight = !facingRight;
		Vector3 theScale = transform.localScale;
		theScale.x *= -1;
		transform.localScale = theScale;
	}
}

And by the way, this is to make the character move when pressed a button.

I just fixed it, one of the rigidbodies needed a capital R, so I fixed it.