How would I get all parts of a group to change their transparency?

I’m looking to find a way to get all the parts in a group, to be able to change their transparency, maybe even hooking it up to a boolvalue. Help is appreciated

try:

local model = modelHere

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