I NEED HELP BIG TIME!!

using UnityEngine;
using System.Collections;

public class PlayerControll : MonoBehaviour
{

public float speed;

private Rigidbody rb;

void Start() {
rb = GetComponent();
}

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

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

rb.AddForce(movement * speed);
}
}

//THIS IS THE ERROR IM GETTING!!!
//The referenced script on this Behaviour is missing!

Hi @Nawid13 . Firstly, please read this thread for info about how to properly lay out code questions :slight_smile: It might also be good to name your threads a bit more descriptively.

Ok, now to your problem. Somewhere in your scene, you’ve got a GameObject that has a component, but doesn’t know what that component is. This usually happens when deleting or improperly renaming scripts. If you have a small amount of components, just go through and find it.

If you have a lot of components and it isn’t practical to go through them all, this wiki page has a decent solution.

It could be your script name. Should it be PlayerControl or PlayerController? Currently you end it with 2*l’s