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