How would I be able to get everything in a folder to change?

Currently making a PlaybackLoudness thing and I’m trying to make it so multiple parts can do this and that at the same time. I’ve tried using GetChildren but with no success. How do I make this work?

Code:

local part = game.Workspace.Lights:GetChildren("Light")
local Sound = game.Workspace.CurrentMusic

Sound:Play()

while Sound.IsPlaying do
	part.Color = Color3.fromRGB(8, 8, Sound.PlaybackLoudness /8)
	wait()
	end

Folder with Objects
image

:GetChildren() does not take any arguments. You need to use a loop for this.

local parts = game.Workspace.Lights:GetChildren("Light")
local Sound = game.Workspace.CurrentMusic

Sound:Play()

while Sound.IsPlaying do
	for _, part in next, parts do
		part.Color = Color3.fromRGB(8, 8, Sound.PlaybackLoudness/8);
	end
	wait();
end

What this does is iterate through each child in workspace.Lights. And assuming there is only parts in that folder, this should set their color to the playback loudness.