of     1   

badgraphix
#36497165Thursday, November 04, 2010 8:52 PM GMT

I'm curious because I'm using a script that turns all children(Parts only)'s transparency to 1. So there some sort of FindAllChildren function or do I have to do it manually?
merger3
#36497284Thursday, November 04, 2010 8:54 PM GMT

you probley could use :getchilderen()......
Notunknown99
#36497296Thursday, November 04, 2010 8:54 PM GMT

GetChildren() returns a table containing all objects inside the object the method is called on
teseting
#36497309Thursday, November 04, 2010 8:54 PM GMT

:GetChildren() will return a table of all the children. So, you will need a for loop to find all the children. table = whatever:GetChildren() for i = 1,#table do table[i].Transpaarency =1 end
someman
#36497460Thursday, November 04, 2010 8:56 PM GMT

Do something with Classname.
Notunknown99
#36497507Thursday, November 04, 2010 8:57 PM GMT

@teseting: This is better (I think so anyway) for i,v in pairs(script.Parent:children()) do if v:IsA("BasePart") then v.Transparency = 1 end end
teseting
#36497617Thursday, November 04, 2010 8:58 PM GMT

Yeah, but that might be too advance to him.
B3tturTh3nU
#36497659Thursday, November 04, 2010 8:58 PM GMT

function GetAllChildren(root, array) if not array then array = {} end for i, v in pairs(root:getChildren()) do array[#array + 1] = v GetAllChildren(v, array) end return array end local set = GetAllChildren(workspace) Recursive Win
Thunderx10
#36498903Thursday, November 04, 2010 9:14 PM GMT

while true do for i,v in pairs(game.Workspace:getChildren()) do print(v.Name) wait(2) end end
daggerz77
#36503735Thursday, November 04, 2010 10:18 PM GMT

ya wut dey said :3
Varp
#36508279Thursday, November 04, 2010 11:15 PM GMT

You probably want B3tter's thing, but those are called descendants, not children.
dannyboy2k8
#36508677Thursday, November 04, 2010 11:21 PM GMT

Just use what teseting said. Nice and easy.

    of     1