turning on a particle system that is a child of the main camera

So i have been reading for a while on the forum, and trying to figure out how to turn on and off my particle system. i have tried

the following when i want to turn it on:

particleSystem.particleEmitter.enabled = true;

I know that it starts on by default, so i have it being set to false in start function.

but it is not working. how can i get to the particle system since it is attached to my camera?

figured it out, apparently everything i read on here that had to do with calling a component in the camera was wrong, because nothing they said worked for me. but this did:

Camera.main.GetComponent().enableEmission = false;