In the Awake function I use
particleSystem = GetComponent<ParticleSystem>();
To get the particle system which is a child of my current component.
But I'm getting an exception saying
MissingComponentException: There is no 'ParticleSystem' attached to the "Gun" game object, but a script is trying to access it.
You probably need to add a ParticleSystem to the game object "Gun". Or your script needs to check if the component is attached before using it
The script is sitting on the object which has the arrow pointint on it