I recently got this error whilst practising splitting up strings into commands (I understand this probably isn't the best method when splitting up strings, but it's a start).
Anyway, I get this error:
I'm not entirely sure what's wrong with it, either way here is the entire script:
Could any of you explain what's wrong? Thank you.
The return value of the getPlayer function is a table of players, and not a player. You can't call Kick on a table. There cannot be several players with the same name, so you should just return the first match.
table.insert(returned, v) just