generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

GetChildren

Previous Thread :: Next Thread 
cheez55 is not online. 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 is not online. are31
Joined: 09 Nov 2007
Total Posts: 13767
15 Sep 2013 06:14 PM
code pl0x
Report Abuse
ninja900500 is not online. ninja900500
Joined: 27 Sep 2008
Total Posts: 2324
15 Sep 2013 06:14 PM
v = game.Workspace:GetChildren()
v.Transparency = 0
Report Abuse
ScrewDeath is not online. ScrewDeath
Joined: 03 Jun 2012
Total Posts: 2700
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image