How would you get all the parts in a model then make them transparent?

just would like to know! could come in handy in the future

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

this should work
PathToModel is the path to your model
TransparencyYouWant is the transparency you want to set the parts to, 0 - 1