My question is..
I have a StringValue, and the value is set to whatever a player chooses. The player can choose between a multiple of choices, and each of the outcomes are stored inside a ModuleScript, (through function())
I've taken the value of the StringValue, I just don't know where to go next.. I need to take the value of the StringValue, and have the game search through each of the values in the ModuleScript to find a match, and then execute the function that the Variable in the ModuleScript holds.
Im currently using:
local collectedSpell = currentSpell.Value
spellModule(string.match(spellModule, currentSpell))
Output: bad argument #1 to 'match' (string expected, got table)
(Most variables aren't showed, but I required the module, and other variables above that)

2 comments
string.match requires multiple arguments
Added a 2nd argument it's now "spellModule(string.match(spellModule, currentSpell))" but now an error appears in the output "bad argument #1 to 'match' (string expected, got table)"