i made a tool but wanna make it so that all the parts are transparent (don't ask why) how do i do it?
COMMUNITY QUESTION
how do you change the transparency of multiple blocks without changing the name?
2 answers
Use the GetChildren method of an object to access a list of the objects inside of it, then iterate through them and change their Transparency.
In addition to iwaffle1's answer, the GetChildren method is a read-only table of the given parent's childrens, For Instance.
local Children = workspace:GetChildren() or game.Workspace:GetChildren()
This not be edited with nor Modified, to iterate through it, you'd have to use a iterating function or the Pairs function, Example of layout.
for index,value in pairs(Children) do
return v
end
The value in the Pairs is a variable of all the Parent's children, and the index is the Current Index, Example of an Index :
local var = 56
for i,v in pairs(var) do
print(i,v) --> var 56
end
- Lua
for i = begin,last,increment do
end
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
slap im such an idiot i was using className