I have a model it has 1,000 parts that would take to long to reference them all so how would I get all children at once like this!
1 | --somehow gets all children-- .transparency = 1 |
thanks
If i understand correctly, a for
loop should be useful in this scenario
1 | for i,v in pairs (model:GetChildren()) do -- Get All Children |
2 | if v:IsA( "BasePart" ) then -- If its a part |
3 | v.Transparency = 1 -- Makes its transparency 1 |
4 | end |
5 | end |
1 | > for _,v in pairs (putplaceofmodelhere:GetChildren()) do |
2 | > v.Transparency = 1 |
3 | > end |