cheez55
|
  |
| Joined: 19 Oct 2008 |
| Total Posts: 646 |
|
|
| 15 Sep 2013 06:12 PM |
| So I have a Box (1 Model) and a trigger people hit inside of it. The open door of the box with 1 Transparency and Can'tCollide has 6 parts to it, each named "Door". What I want to do is make is so that, when the trigger is hit, all 6 parts of the Door become CanCollide and get 1 Transparency. I'd like to do this without individually applying those properties to each of the 6 bricks within the script. As far as I know, you'd use GetChildren for something like this, but odds are I'm wrong. |
|
|
| Report Abuse |
|
|
are31
|
  |
| Joined: 09 Nov 2007 |
| Total Posts: 13767 |
|
| |
|
|
| 15 Sep 2013 06:14 PM |
v = game.Workspace:GetChildren() v.Transparency = 0 |
|
|
| Report Abuse |
|
|
|
| 15 Sep 2013 06:15 PM |
DoorModel = ModelwheredoorpartsAre:GetChildren() for i = 1,#DoorModel do if DoorModel[i].Name == "Door" then --ye end end |
|
|
| Report Abuse |
|
|