Hi, I’m trying to make admin commands, but I want to refer to more than one argument in a table when said admin says something like ‘give’ or ‘kick’. Refer to the following images:
Commands will be revealed in the next image; cmdName is the name of the command being used; plr is player; splitstring is the players message split (divided by spaces)
Commands is a variable (local commands = {}); findPlayer(plr) is a function that finds the player in game:GetService("Players"):GetPlayers().
There is no error in anything, as other commands are working as well; the only thing I want to know is how to refer to multiple arguments in a table.
I assume you wanna try to refer n amount of arguments in a function depending on what type of command you are using. In that case, you can check out variadic functions.