help
local bacmodule = require(script.BACModule)
local runnerfunctions = {}
function runnerfunctions.findComponents(cmd)
local words = {}
for word in string.gmatch(cmd, '%S+') do
table.insert(words, word)
end
for _,v in pairs(game.Players:GetPlayers()) do
if v.Name:lower():match(words[2]:lower()) then
triggercommand(words[1],v)
end
end
end
function triggercommand(cmd,plr)
if cmd:lower() == "kill" then
bacmodule:Kill(plr)
elseif cmd:lower() == "explode" then
bacmodule:Explode(plr)
end
end
return runnerfunctions
14:04:01.864 - ServerScriptService.ServerChat.Extensions.BasicAdminCommands:6: bad argument #1 to 'gmatch' (string expected, got table)
heres the other script
if msg:sub(1,1) == ":" and script.Extensions:FindFirstChild("BasicAdminCommands") then
msg = msg:sub(2)
local bac = require(script.Extensions.BasicAdminCommands)
bac:findComponents(msg)
end

4 comments
Your script tells you that on line 6 it expects a string not a table.
there i'snt a table there
Looks like there is. Scripts aren't stupid, they just do what you tell them to do.
then where is it