Is It Possible To Globally Disable Particles?

Hello, Everybody!
So, as you can see in the title, I was wondering if it was possible to globally disable every particle emitter.
For example, I am making a settings UI, and if the player could click a button to disable it. That would be very helpful.

You could use the :GetDescendants() function

For example:

local Button = TextButtonLocation
ParticlesEnabled = true

	for i,v in pairs(Particles) do
		if v:IsA("ParticleEmitter") then
			if ParticlesEnabled then
				v.Enabled = false
				ParticlesEnabled = false
				v.Enabled = true
				ParticlesEnabled = true 

As long as you are using a LocalScript, the particles will only be disabled / enabled on the Client.
Hope this helped!

1 Like

thank you very much this is exactly what I needed.