Attempt to call a nil value?

I’m getting this error even though I defined the global variable at the top of the script. Can anyone help?

for i = 1, #PlayerChildren do
	table.add(_G.All,i,PlayerChildren[i])
	print(_G.All[i])
end

There is no such thing as table.add. Did you mean to use table.insert?

Oh, I just realized that. Mistake on my end I guess I forgot about that since I have used table.insert before.