Hello. I've recently run into this error whilst scripting? Can someone tell me why?
It works all the way up to the point of the print(table.concat) part.
Getting this error: bad argument #1 to 'concat' (table expected, got string)
Managers = { 'zonit', 'EIijahMikaelson', } local function getValues(tableName) print(table.concat(tableName, ", ")) end Player.Chatted:Connect(function(Message) Message = Message:lower() if string.sub(Message,1,10) == '.getvalues' and isReady == true and isIntro == false and isManager() then local tableName = string.sub(Message,11) getValues(tableName) end end)
if i catched ur question, this should work
local managers = {"zonit", "EIijahMikaelson"} for i, v in pairs(managers) do print(v) end