title: Duplicating tables in Lua
body: <p>I'm having trouble with how Lua uses references to duplicate tables. If I have the following code:</p>
  
  <pre><code>table = {}
  table.hello = "Hello"
  
  function MyFunction (myTable)
          myTable.goodbye = "goodbye"
          return myTable
  end
  
  table2 = MyFunction(table)
  </code></pre>
  
  <p>In this code, table2 and table would end up having the exact same content. How could I make it so only table2 had the goodbye variable?</p>