Posts: 1,752
	Threads: 460
	Joined: Apr 2011
	
Reputation: 
0
	 
 
	
	
		So if a tool had a fly script in it, I'd be the child and the tool would be the parent? :O
	
	
	
	
	
 
 
	
	
	
		
	Posts: 1,012
	Threads: 94
	Joined: May 2011
	
Reputation: 
0
	 
 
	
	
		This should be in the scripter's section.
	
	
	
	
	
 
 
	
	
	
		
	Posts: 805
	Threads: 85
	Joined: May 2011
	
Reputation: 
0
	 
 
	
	
		Let's say you have a script inside of a box.
Box
VV
Script
The scripts parent is the box. the Box's child is the script.
	
	
	
	
	
 
 
	
	
	
		
	Posts: 5,683
	Threads: 413
	Joined: Aug 2012
	
Reputation: 
0
	 
 
	
	
		To find a child inside a parent, you can either go
[lua]
box.[[childsname]]
[/lua]
or, and you have to do this if there's a space in the name,
[lua]
box:getChild("[[childsname]]")
--or in ROBLOX
box:findFirstChild("[[childsname]]")
[/lua][/lua]
	
	
	
	
	
 
 
	
	
	
		
	Posts: 823
	Threads: 75
	Joined: Apr 2011
	
Reputation: 
0
	 
 
	
	
		Can't you also do,
[lua]
box["childsname"]
[/lua]
Sorry it's been a while since I've scripted in Lua.
	
	
	
	
	
 
 
	
	
	
		
	Posts: 5,683
	Threads: 413
	Joined: Aug 2012
	
Reputation: 
0
	 
 
	
	
		I think so, but I've almost never seen it used.
	
	
	
	
	
 
 
	
	
	
		
	Posts: 1,725
	Threads: 105
	Joined: Feb 2011
	
Reputation: 
0
	 
 
	
	
		You can't do box.[["childname"]] it's box["childname"].Whatever