#how can i alter everything in a model

1 messages · Page 1 of 1 (latest)

hoary ingot
#

in a game im making i have a model with a bunch of parts in it named "Part" and im trying to make everything in it transparency 1 at once but it only does it for one of them, does anybody know how i can make it select them all

fallen nova
#

You can use getdescendants to get a table of instances, then you can use :IsA to check if it's a basepart which has transparency.

hoary ingot
#

@fallen nova

languid pasture
#
while task.wait(3) do
    for _, Part in workspace.CorruptedUpgrades:GetChildren() do
        if not Part:IsA("BasePart") then continue end
        
        Part.Transparency = (game.ReplicatedStorage.NothingU3.Value == 0) -- if Value == 0 - true (1) else false (0)
    end
end

@hoary ingot