So the error code is the title basically. I made a new shot that is like a super shot, all I did was make it a cube + the same scripts as my last bullet was but now after I hit one of my enemies this error pops up and I can no longer shoot it.
MissingReferenceException: The object of type ‘Rigidbody’ has been destroyed but you are still trying to access it.
Your script should either check if it is null or you should not destroy the object.
UnityEngine.Object.Internal_InstantiateSingle (UnityEngine.Object data, Vector3 pos, Quaternion rot) (at E:/BuildAgent/work/71ca6fec1b41cc30/Runtime/Export/Generated/BaseClass.cs:46)
UnityEngine.Object.Instantiate (UnityEngine.Object original, Vector3 position, Quaternion rotation) (at E:/BuildAgent/work/71ca6fec1b41cc30/Runtime/Export/Generated/BaseClass.cs:57)
playerL3.Update () (at Assets/Scripts/Levels/L3/playerL3.js:21)