I'm trying to make an admin commands script, but it does not work with the concat.
thanks!
local function Split(String)
local Table = {}
for I = 1, #String do
table.insert(Table, string.sub(String, I, I))
end
return Table
end
local player = game.Players.LocalPlayer
player.Chatted:Connect(function(msg)
if msg:find("!print") then
local memes = msg
print(memes)
local memes = Split(msg)
table.remove(memes, 1)
table.remove(memes, 1)
table.remove(memes, 1)
table.remove(memes, 1)
table.remove(memes, 1)
table.remove(memes, 1)
table.concat(memes)
print(memes[1])
end
end)
it prints out "h" if i do "!print hi". thanks for any help!!
