Change a lot of properties with 1 script

I have a folder with a bunch of bricks and they are supposed to change transparency to 1 because it just be stupid to have a script for each brick.

Conclusion:
How to change the transparency of a lot of bricks IN A FOLDER with 1 script?

Iterate over each brick using a for loop and GetChildren on a container holding said bricks

Try using Folder:GetChildren() and a pairs() loop.

for i,v in pairs(Folder:GetChildren()) do
	if v:IsA("BasePart") then
		v.Transparency = 1
	end
end

It worked, thank you so much. :pray:

Better to use ipairs for arrays (as to indicate that the iterable you’re iterating over is an array).