How do I enable and disable more than 2 effects at once? (FIXED)

Basically I want to write a code that will enable and disable all of the effects inside of an attachment.

for example there are 5 effects in an attachment and I want to disable all of them at once.

Here is a picture of the effects I want to disable in this attachment.
Screenshot 2023-07-18 191927

What type of coding should I use?, and how do I code it?

(I found out my solution)
here was the code I needed to use

local HitAttach = HRP:WaitForChild("Hit")

for i, effect in pairs(HitAttach:GetChildren()) do
	effect.Enabled = false
	i += 1
end

What are all of the others that isn’t the PointLight? I don’t use the default icons. I can’t tell.

Nvm I found out a way… it was a for loop that I needed to use.

1 Like

That is exactly what I was going to write for you :joy: :joy:

Glad you figured it out, at least.