Enabling particle system with trigger

I’m trying to make it so the particle system is enabled whilst the player is in the trigger, but I can’t get the emission.enabled to work for me. I don’t want to turn the whole game object on and off because I want the remaining particles to finish their cycle.
Can anyone help?

using UnityEngine;
using System.Collections;

public class SparkleScript : MonoBehaviour {
	
	public ParticleSystem Sparkle; 

	void Start () {
		Sparkle.emission.enabled = false; 
	}

	void OnTriggerEnter () {
			Sparkle.emission.enabled = true; 
		} 

	void OnTriggerExit () {
		Sparkle.emission.enabled = false;
	}
}

hi charlottie333, maybe it’s too late for answering this question. I hope you’ve found your answer by now.
But here is a solution for the thing that you want to do:

public class EmitParticleTrigger : MonoBehaviour
{

    public ParticleSystem particle;
    public int emitCount;
    private void OnTriggerEnter2D(Collider2D other)
    {
        if (other.gameObject.tag == "Player")
            particle.Emit(emitCount);
    }
}

Here is documentation if you wanna know what Emit() is doing specifically: Unity - Scripting API: ParticleSystem