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!
--somehow gets all children-- .transparency = 1
thanks
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!
--somehow gets all children-- .transparency = 1
thanks
If i understand correctly, a for loop should be useful in this scenario
for i,v in pairs(model:GetChildren()) do -- Get All Children
if v:IsA("BasePart") then -- If its a part
v.Transparency = 1 -- Makes its transparency 1
end
end
> for _,v in pairs(putplaceofmodelhere:GetChildren()) do
> v.Transparency = 1
> end
This would work, but if there is something that isn't a part in the model, it will break
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
THANK YOU SO MUCH