Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

is it possible to set everything (parts and unions) inside of a model's transparency to 1?

I am trying to make platforms inside of an obby game appear only once someone touches a part, but I do not know how to set every single platform's transparency to 1 before they touch it. Any suggestions?

1 answer

✓ Accepted answer

To return every child of the model, you use the GetChildren method.

for _,v in pairs(workspace.Model:GetChildren()) do
    if v:IsA("BasePart") then
        v.Transparency = 1
    end
end

3 comments

0

Thanks.

0

np accept if it works

0

alr

This discussion is preserved as it was. New answers, comments, and votes are closed.