FPS Tuturial FPSplayer Script

Help me please I do not know how to fix this.

Every time I try my level i get this error:
NullReferenceException: Object reference not set to an instance of an object
FPSPlayer.UpdateGUI () (at Assets/FPSPlayer.js:110)
FPSPlayer.LateUpdate () (at Assets/FPSPlayer.js:73)

Here are the scripts for those lines:

  1. rocketGUI.UpdateRockets(rocketLauncher.ammoCount);
  2. UpdateGUI();

Any help would be appreciated

Ezio_Desmond

Welcome to the forums.

sometimes the best help is simply googling the text you see on the screen.
http://www.lmgtfy.com/?q=NullReferenceException%3A+Object+reference+not+set+to+an+instance+of+an+object

Or even describing the steps you took in order to solve the issue yourself. Since you didn’t provide much info on it, i’m just gonna guess that there’s a gameobject with a script that isn’t linked to another gameobject in the inspector. However i doubt me or anyone else can really help you solve the problem without knowing much more.