71 posts
                
                    
                        Location
                        Everywhere and nowhere.
                    
                
             
            
                Posted 14 May 2018 - 09:08 PM
                How do I insert a table into a table?
Thanks for any help!
                
             
         
        
        
            
            
                
                    
                
                1426 posts
                
                    
                        Location
                        Does anyone put something serious here?
                    
                
             
            
                Posted 14 May 2018 - 09:12 PM
                Like you would any other value?
local a = {}
table.insert(a, {})
I suspect you want something more than that, in which case you might want to expand on your question a little.
 
                
                    Edited on 14 May 2018 - 07:12 PM
                
             
         
        
        
            
            
                
                    
                
                71 posts
                
                    
                        Location
                        Everywhere and nowhere.
                    
                
             
            
                Posted 14 May 2018 - 11:41 PM
                Ok. Thanks!
                
             
         
        
        
            
            
                
                    
                
                2427 posts
                
                    
                        Location
                        UK
                    
                
             
            
                Posted 15 May 2018 - 12:11 AM
                or
local tab = {}
tab.subTable = {}
--# or
local tab2 = {
  subTable = {}
}
 
                
                    Edited on 14 May 2018 - 10:12 PM