so I’ve tried multiple ways on how to do this but I still can’t figure it out every script I try doesn’t make the particles activate after the sprite is destroyed it still just plays at the beginning while the boss is still alive
If you are trying to do this in the Sprite Script, just remember that the script stops when the object is destroyed.
What you’ll need to do is to instantiate a prefab at the sprite’s position before you destroy the sprite. The prefab won’t have anything on it but a Particle System component. You could adapt this code:
GameObject particles = Instantiate(particlesPrefab);
particles.transform.position = transform.position;
Destroy(gameObject);