So this is the script

local access = {"piebiedieroti"}

local command = "/kick "

game.Players.PlayerAdded:Connect(function(player)
	for i,v in pairs(access) do
		if player.Name == v then
			player.Chatted:Connect(function(msg)
				if msg:sub(1, command:len()):lower() == command:lower() then
					local username = msg:sub(command:len() + 1)
					local reason = msg:sub(username:len() + username:len() + 1)
					if game.Players:FindFirstChild(username) then
						game.Players:FindFirstChild(username):Kick(tostring(reason))
					end
				end
			end)
		end
	end
end)

for some reason, I can't get to the reason message the problem is at line 11