Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How would I get all the arguments as ... from a function?

What I'm trying to do is getting out all the arguments a function is giving me, in this case its pcall.

I'm trying to do someting like this.

local Success,... = pcall(Function,Args) -- I want all the arguments as a table or someting i can unpack.

This doesn't work because of syntax error: Expected identifier when parsing variable name, got '...'

1 answer

Got answer from discord:

local Args = {pcall(Function,Args)}

This discussion is preserved as it was. New answers, comments, and votes are closed.