a perfect example
function Foo(...)
for k, v in pairs(arg) do
print(v)
end
end
Foo("Hello", "World!", "", "How", "Are", "You", "Today")
for those who dont know, you can make a function with variable arguments via "...", and you access all the arguments as a table via "arg", but roblox keeps saying "W001: Unknown global "arg"", help?

1 comment
Interesting. Running it on Lua Interpreter, it works perfectly fine. I guess in Roblox Studio, you would have to declare it as it showed an "Unknown global variable" error. Declare args by doing
local args = {...}