Why is my script in RollaBall not working?

I am currently working on the Rollaball tutorial in Unity 2017 version 2. I am typing the script exactly as it appears in the video to make the ball move but my ball is still stationary. My code is the following:

using UnityEngine;                                                                                                                                                                             
using System.Collections;

                                                                                                                                                                            
                                                                                                       public class PlayerController : MonoBehaviour {

private Rigidbody rb;

void Start()
{
	rb = GetComponent<Rigidbody>();
}

void FixedUpdate()
{
	float moveHorizontal = Input.GetAxis ("Horizontal");
	float moveVertical = Input.GetAxis ("Vertical");

	Vector3 movement = new Vector3 (moveHorizontal, 0.0f, moveVertical);

	rb.AddForce (movement);
}

}

Hi Hatsuko,
Interesting, I have a Rigidbody component added to the player object so I’m not getting that error, I don’t know if it’s a bug with Unity 2017 or what but I guess I could try re-writing the script.

It’s definitely not the script. I created a sphere, added a rigidbody to it, and added this script to it (pasted the exact code you typed). It works fine.

Either you don’t have it configured correctly on your game objects or there is some kind of optical illusion that makes you think it isn’t moving when it really is.