I have checked, and rechecked the code, and changed allot of things in it, but I can't figure out what's wrong, the Output says Workspace.XAdminCommandsX's Admin Commands V1:962: String expected Script 'Workspace.XAdminCommandsX's Admin Commands V1', Line 1006 - upvalue Chat Script 'Workspace.XAdminCommandsX's Admin Commands V1', Line 1015, but, I can't figure out how to fix it, here is the code;
if msg:lower():sub(1,9+#Prefix) == Prefix.."loopkill " then
local chk = msg:lower():sub(10+#Prefix):find(" ") + 9+#Prefix
local plrz = GetPlr(plr,msg:sub(10+#Prefix,chk-1))
local num = tostring(0)
if type(num) == "number" and num ~= 0 then num = msg:sub(chk+1) elseif type(num) == "string" and num ~= "" then num = #msg:sub(chk+1) end
for i,v in pairs(plrz) do
coroutine.wrap(function()
if v and v.Character and --[[not ChkAdmin(v.Name,false) and]] LoopKill then
local LoopKillPlr = LoopKill:Clone()
LoopKillPlr.Parent = game.Workspace
LoopKillPlr.Disabled = false
LoopKillPlr.Name = "LoopKill-"..v.Name
local ConfirmName = Instance.new("StringValue",LoopKillPlr) ConfirmName.Value = v ConfirmName.Name = "loopKill"
local Kills = Instance.new("IntValue",LoopKillPlr) Kills.Value = num Kills.Name = "Kills"
table.insert(Container,LoopKillPlr)
end
end)() --This is line 962, this is where the problem is for some reason
end
end

3 comments
Thanks for giving us just a snippet of the code, but what is the syntax of line 962?
Please edit your question to 1) Indicate what line number the first line is in this snippet; 2) Paste the full error verbatim into your question
Lol, sorry, I forgot to add those, I've just added the Error and what line is '962'.