Hi, I was wondering if it was possible to put a table inside of a global function to transfer it to another script. Here is an example I tried:
Inside Main Script:
_G.test = function()
local try = {
Num1 = "Hey",
Num2 = "Hello"
}
print(try.Num1)
end
Inside Other Script:
_G.test()
Error Workspace.Script:1: attempt to call field 'test' (a nil value)
I couldn't get it to work. Could someone help me or at least explain it?

1 comment
Okay, thanks for the help!