Enabling a list of particles from button press

I am having trouble getting this script to work, I have never used GetDescendants and am just messing around with it

local button = script.Parent
local part = game.Workspace.Group1.Part

local function onActivated()
		for I,V in pairs(part:GetDescendants()) do

			if V:IsA("ParticleEmitter") then
				V.Enabled = false
			end
		end
	end

button.Activated:Connect(onActivated)

Only one random particle is affected, the rest aren’t

Can we see the explorer? Also, what is “button?”
A Clickdetector or something?

your script is written correctly and I don’t see what is wrong, try printing the class of each object and its name. Right now, not enough information is given to help you

Screenshot 2024-01-20 205406

Heres the explorer, also button is a textbutton

for a textbutton do button.MouseButton1Click:Connect