gangman67
|
  |
| Joined: 04 Jun 2011 |
| Total Posts: 798 |
|
|
| 25 Aug 2015 07:35 PM |
local Find1 = game.Workspace:GetChildren() --Gets Children of Workspace (Obv) local d = 1 --DEBOUNCE function Find() for i=1, #Find1 do if Find1[i].ClassName == "Folder" and Find1[i].Name == "Parts" and d == 1 then local Find2 = Find1[i]:GetChildren() <--TROUBLE HERE for a=1, #Find1 do Find2[a].BrickColor = BrickColor.new("White") <--AND HERE print("Colored") d = 2 end end end end function Click() Find() d = 1 end script.Parent.MouseButton1Click:connect(Click) Ok I have the parts marked were I am Having trouble 1 It doesnt get the children of the folder which are parts. 2 It trys to find the BrickColor of the folder. also can you get the children of children that you have got? |
|
|
| Report Abuse |
|
gangman67
|
  |
| Joined: 04 Jun 2011 |
| Total Posts: 798 |
|
| |
gangman67
|
  |
| Joined: 04 Jun 2011 |
| Total Posts: 798 |
|
|
| 25 Aug 2015 07:53 PM |
| Nvm Im just dumb I forgot I had folders inside the folder qq |
|
|
| Report Abuse |
|