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)

7 comments
Forgot the add, the script itself is suppose to get all the values of the 'Managers' table and print it.
TableName is a string.
uhhh
wait u went through all of this to print the managers table?
There is code under it, but of course I need to make sure the print worked first.
How would I change the string into a way it counts as the table instead of the string?
maybe make it a table {tableName} on line 18