Table.expand=function(l,u)if u<0 then error("\067\097\110\110\111\116 \101\120\112\097\110\100 \097 \116\097\098\108\101 \098\121 \097 \110\101\103\097\116\105\118\101 \097\109\111\117\110\116 \111\102 \111\098\106\101\099\116\115\046")end local V=table.create(#l+u)for u=1,#l,1 do V[u]=l[u]end return V end return Table
-- ONLY SUPPORTS ORDINAL TABLES (ARRAYS). Allocates a new table by getting the length of the current table and increasing its capacity by the specified amount.
-- This uses Roblox's table.create function.
Table.expand = function(tbl, byAmount)
	if byAmount < 0 then
		error("Cannot expand a table by a negative amount of objects.")
	end

	local newtbl = table.create(#tbl + byAmount)
	for i = 1, #tbl do
		newtbl[i] = tbl[i]
	end
	return newtbl
end

return Table
