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

Pass arguments to a function in a table?

lets look at this:

local table = {
["example key"] = function(arguments)

				end;

}

how do I pass arguments into this function using the key as a specification for that function?

2 comments

0

Not sure what you're asking. You want something other than just table"example key" ?

0

Actually that's exactly what I needed to know. I just didn't know the syntax for passing arguments, simpler than I thought.

1 answer

✓ Accepted answer

You should change your variable name, but...

t["example key"](...)

2 comments

1

it was just an example, but thanks, now i know the syntax for it.

0

yw

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