How to fix this?

[16:03:07] [Exception]: NullReferenceException: Object reference not set to an instance of an object

ClientWeapon.PrefabDownloaded ()
StateDownloader.Finish (System.Collections.Generic.List`1 downloaders)
Loader.CheckIfAllLoaded ()
Loader.OnLoadingFinished (System.Object downloader)
Downloader+c__IteratorD.MoveNext ()

[16:05:13] [Exception]: NullReferenceException: Object reference not set to an instance of an object

ClientAmmunitions.PrepareSecondary ()
ClientAmmunitions.PrepareWeapon ()
BaseAmmunitions.Init (.BaseNetPlayer player)
ClientAmmunitions.Init (.BaseNetPlayer player)
EntityNetPlayer.SpawnPlayerObject (Vector3 pos, Vector3 euler, Int32 secondaryIndex, Int32 primaryIndex, Boolean secondaryMod, Boolean primaryMod, Single secondary_repair_info, Single primary_repair_info, System.String secondaryMods, System.String primaryMods)
EntityNetPlayer.CallLateUpdate ()
BaseClientGame.OnLateUpdate ()
Forms.OnLateUpdate ()
Main.LateUpdate ()

[16:05:35] [Exception]: NullReferenceException: Object reference not set to an instance of an object

BaseMoveController.get_SpeedMult ()
AnimationsThird.PlayMoving ()
AnimationsThird.CallLateUpdate ()
EntityNetPlayer.CallLateUpdate ()
BaseClientGame.OnLateUpdate ()
Forms.OnLateUpdate ()
Main.LateUpdate ()

[16:05:47] [Exception]: NullReferenceException: Object reference not set to an instance of an object

EntityMoveController.Tick (Single dt)
BaseNetPlayer.CallFixedUpdate ()
EntityNetPlayer.CallFixedUpdate ()
BaseClientGame.OnFixedUpdate ()
Forms.OnFixedUpdate ()
Main.FixedUpdate ()

[16:05:47] [Exception]: NullReferenceException: Object reference not set to an instance of an object

AnimationsThird.CallLateUpdate ()
EntityNetPlayer.CallLateUpdate ()
BaseClientGame.OnLateUpdate ()
Forms.OnLateUpdate ()
Main.LateUpdate ()

[16:04:13] [Error]: auga3 augmb 192

[16:05:46] [Exception]: NullReferenceException: Object reference not set to an instance of an object

ClientWeapon.OnFire ()
BaseWeapon.Fire ()
BaseAmmunitions.Fire ()
BaseNetPlayer.CallFixedUpdate ()
EntityNetPlayer.CallFixedUpdate ()
BaseClientGame.OnFixedUpdate ()
Forms.OnFixedUpdate ()
Main.FixedUpdate ()

[16:04:29] [Exception]: NullReferenceException: Object reference not set to an instance of an object

AnimationsThird.get_WeaponString ()
AnimationsThird.PlayHit ()
BaseNetPlayer.Hit (Int32 playerID, Int32 targetID, Single health, Single armor)
EntityNetPlayer.Hit (Int32 playerID, Int32 targetID, Single health, Single armor)
BaseRpcNetPlayer.PlayHit (Int32 playerID, Int32 targetID, Single health, Single armor, Single power)

[16:03:50] [Exception]: NullReferenceException: Object reference not set to an instance of an object

AnimationsThird.PlayKnife (Single time)
EntityAmmunitions.Knife ()
BaseNetPlayer.CallFixedUpdate ()
EntityNetPlayer.CallFixedUpdate ()
BaseClientGame.OnFixedUpdate ()
Forms.OnFixedUpdate ()
Main.FixedUpdate ()

[16:04:50] [Error]: mp5k m4 40

[16:05:13] [Exception]: NullReferenceException: Object reference not set to an instance of an object

ClientAmmunitions.PreparePrimary ()
ClientAmmunitions.PrepareWeapon ()
BaseAmmunitions.Init (.BaseNetPlayer player)
ClientAmmunitions.Init (.BaseNetPlayer player)
EntityNetPlayer.SpawnPlayerObject (Vector3 pos, Vector3 euler, Int32 secondaryIndex, Int32 primaryIndex, Boolean secondaryMod, Boolean primaryMod, Single secondary_repair_info, Single primary_repair_info, System.String secondaryMods, System.String primaryMods)
EntityNetPlayer.CallLateUpdate ()
BaseClientGame.OnLateUpdate ()
Forms.OnLateUpdate ()
Main.LateUpdate ()

[16:05:47] [Exception]: NullReferenceException

UnityEngine.Component.get_transform ()
Pool.Despawn (.PoolItem obj)
PoolItem.Despawn ()

Not magicians. In order to fix a problem with your script, you need to actually show us your script. Post it in [code ][/code ] tags please.

Also, why are there no line numbers? Post the very first error in the Unity console, and not your IDE’s console, which should include line numbers. Double clicking that first error will probably take you to the exact spot where the error is occurring. I’m guessing from the content that you’re either trying to access an uninitialized list object or a null reference within that list.