# Is this a bug - Solid Particles System

**URL:** <https://forum.babylonjs.com/t/is-this-a-bug-solid-particles-system/55408>\
**Category:** Bugs\
**Tags:** particles, sps, scene, dispose\
**Created:** [December 16, 2024, 6:35pm UTC](https://forum.babylonjs.com/t/is-this-a-bug-solid-particles-system/55408 "2024-12-16T18:35:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ozgencdev](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/ozgencdev/32/44272_2.png) [@ozgencdev](https://forum.babylonjs.com/u/ozgencdev)\
**Post date:** [December 16, 2024, 6:35pm UTC](https://forum.babylonjs.com/t/is-this-a-bug-solid-particles-system/55408/1 "2024-12-16T18:35:24Z")

</div>

Hi, I want to create fireworks using Babylon SPS, but my code isn’t working correctly. I looked at the documentation and found the `sps.dispose` function, but it doesn’t seem to remove anything from the scene. My expectation is that when I click the mouse, all the particle systems will be removed. However, when I check the scene object (whether I use “dispose” or not), I don’t see any data in the `particleSystems` array. How can I resolve this? Here is my reproduction link:

You should add color to the scene before clicking the mouse  
[https://codesandbox.io/p/github/ozgencDev/Fireworks-Babylon/master?import=true](https://codesandbox.io/p/github/ozgencDev/Fireworks-Babylon/master?import=true)

As I mentioned, my expectation is to recreate the particle system on every click because the properties related to the particles change, and instead of modifying them, it feels easier to create a new system from scratch. If you have a better suggestion, I’d be happy to hear it.

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [December 16, 2024, 10:11pm UTC](https://forum.babylonjs.com/t/is-this-a-bug-solid-particles-system/55408/2 "2024-12-16T22:11:51Z")

</div>

Hey there and welcome!

In order to help efficiently, please reproduce the issue in [playground.babylonjs.com](http://playground.babylonjs.com) 🙂

---

<div class="post-metadata">

**Author:** ![Joe\_Kerr](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/joe_kerr/32/39017_2.png) [@Joe\_Kerr](https://forum.babylonjs.com/u/Joe_Kerr)\
**Post date:** [December 17, 2024, 10:02am UTC](https://forum.babylonjs.com/t/is-this-a-bug-solid-particles-system/55408/3 "2024-12-17T10:02:07Z")

</div>

It should work: [https://playground.babylonjs.com/#GLZ1PX#1330](https://playground.babylonjs.com/#GLZ1PX#1330)

Make sure your references are what you think they are; like when you call “particles.SPS.dispose()” in explosion.ts and related “this.particles”.
