NullReferenceException: Object reference not set to an instance of an object BotControlScript.Start () (at Assets/script/BotControlScript.cs:41)

i douwnloaded a sample project somewhere and used the script to my own project
everything seem fine but i got this error message :

NullReferenceException: Object reference not set to an instance of an object
BotControlScript.Start () (at Assets/script/BotControlScript.cs:41)

and also after i build it ,the camera is not working. it not following the player as how its work in the preview…

here is my project file :
https://www.dropbox.com/s/oanyfvnpgw1lj4q/gumbla.rar
the scene located in “asset” folder

could someone find a way how to fix it?

thank you

In the script BotControlScript.cs, line 41, you’re trying to get a reference to a transform that belongs to an gameobject named “Enemy”. Your scene does not contain such an object, so it can’t find the GameObject and of course because it can’t find that, the property transform doesn’t exist… hence the null reference exception. Add an enemy, read up on GameObject.Find and fix your scripts expectations.